@@ -56,6 +56,8 @@ struct Matrix4x4;
struct Unit;
class SceneGraph;
+///
+/// @ingroup Physics
struct Actor
{
/// Constructor
@@ -44,6 +44,8 @@ struct Vector3;
class PhysicsControllerCallback;
struct Controller
Controller(const PhysicsResource* pr, SceneGraph& sg, int32_t node, PxPhysics* physics, PxControllerManager* manager);
@@ -44,7 +44,8 @@ namespace crown
struct PhysicsResource;
class Actor;
-//-----------------------------------------------------------------------------
struct Joint
Joint(PxPhysics* physics, const PhysicsResource* pr, const uint32_t index, const Actor& actor_0, const Actor& actor_1);
@@ -48,6 +48,8 @@ using physx::PxOverlapBuffer;
namespace crown
+/// @defgroup Physics Physics
+
/// Global physics-related functions
namespace physics_system
@@ -73,7 +75,9 @@ struct Raycast;
struct Vector3;
+/// Manages physics objects in a World.
class PhysicsWorld
public:
@@ -46,7 +46,8 @@ namespace crown
struct Actor;
struct RaycastHit
Vector3 position;
@@ -55,7 +56,8 @@ struct RaycastHit
Actor* actor;
};
struct Raycast