Struct CapsuleShape

Defines the Capsule Collider Type.

struct CapsuleShape

Defines the Capsule Collider Type.

Public Functions

inline fm_vec3_t support(const fm_vec3_t &dir) const
AABB boundingBox(const fm_quat_t *q) const
AABB boundingBox(const Matrix3x3 &rotation) const

Same box as the quaternion overload, for callers that already hold the rotation matrix.

fm_vec3_t inertiaTensor(float mass) const

Public Members

float radius
float innerHalfHeight