diff --git a/cocos/physics/CCPhysicsBody.h b/cocos/physics/CCPhysicsBody.h index 8eedaa974f..a47fd564a8 100644 --- a/cocos/physics/CCPhysicsBody.h +++ b/cocos/physics/CCPhysicsBody.h @@ -50,6 +50,8 @@ const PhysicsMaterial PHYSICSBODY_MATERIAL_DEFAULT(0.1f, 0.5f, 0.5f); /** * @addtogroup physics * @{ + * @addtogroup physics_2d + * @{ */ /** @@ -560,6 +562,8 @@ protected: }; /** @} */ +/** @} */ + NS_CC_END diff --git a/cocos/physics/CCPhysicsContact.h b/cocos/physics/CCPhysicsContact.h index 7125fe0923..cb8d76edf6 100644 --- a/cocos/physics/CCPhysicsContact.h +++ b/cocos/physics/CCPhysicsContact.h @@ -57,6 +57,8 @@ typedef struct CC_DLL PhysicsContactData /** * @addtogroup physics * @{ + * @addtogroup physics_2d + * @{ */ /** @@ -307,6 +309,7 @@ protected: virtual ~EventListenerPhysicsContactWithGroup(); }; +/** @} */ /** @} */ NS_CC_END diff --git a/cocos/physics/CCPhysicsHelper.h b/cocos/physics/CCPhysicsHelper.h index 67bafa446e..bc2199d48b 100644 --- a/cocos/physics/CCPhysicsHelper.h +++ b/cocos/physics/CCPhysicsHelper.h @@ -37,6 +37,8 @@ NS_CC_BEGIN /** * @addtogroup physics * @{ + * @addtogroup physics_2d + * @{ */ /** @@ -108,6 +110,7 @@ public: } }; +/** @} */ /** @} */ NS_CC_END diff --git a/cocos/physics/CCPhysicsJoint.h b/cocos/physics/CCPhysicsJoint.h index 218c483bd6..2fe03328f3 100644 --- a/cocos/physics/CCPhysicsJoint.h +++ b/cocos/physics/CCPhysicsJoint.h @@ -42,6 +42,8 @@ class PhysicsWorld; /** * @addtogroup physics * @{ + * @addtogroup physics_2d + * @{ */ /** @@ -567,6 +569,8 @@ protected: }; /** @} */ +/** @} */ + NS_CC_END diff --git a/cocos/physics/CCPhysicsShape.h b/cocos/physics/CCPhysicsShape.h index 4c55f2946b..4cfa07bc81 100644 --- a/cocos/physics/CCPhysicsShape.h +++ b/cocos/physics/CCPhysicsShape.h @@ -61,6 +61,9 @@ const PhysicsMaterial PHYSICSSHAPE_MATERIAL_DEFAULT; /** * @addtogroup physics * @{ + * @addtogroup physics_2d + * @{ + */ /** @@ -718,6 +721,7 @@ protected: friend class PhysicsBody; }; +/** @} */ /** @} */ NS_CC_END diff --git a/cocos/physics/CCPhysicsWorld.h b/cocos/physics/CCPhysicsWorld.h index 1c98511ba1..4f45d6554e 100644 --- a/cocos/physics/CCPhysicsWorld.h +++ b/cocos/physics/CCPhysicsWorld.h @@ -82,6 +82,8 @@ typedef PhysicsQueryRectCallbackFunc PhysicsQueryPointCallbackFunc; /** * @addtogroup physics * @{ + * @addtogroup physics_2d + * @{ */ /** @@ -415,6 +417,8 @@ protected: extern const float CC_DLL PHYSICS_INFINITY; /** @} */ +/** @} */ + NS_CC_END #endif // CC_USE_PHYSICS diff --git a/docs/Groups.h b/docs/Groups.h index fb19abd5de..3c406ef44b 100644 --- a/docs/Groups.h +++ b/docs/Groups.h @@ -6,6 +6,7 @@ @defgroup base Base @defgroup network Network @defgroup physics Physics +@defgroup physics_2d Physics 2D @defgroup platform Platform @defgroup renderer Renderer @defgroup storage Storage