Struct PyramidShape

Defines the Pyramid Collider Type.

struct PyramidShape

Defines the Pyramid Collider Type.

Hint: The Base of a Pyramid Collider does not need to be square

Public Functions

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 baseHalfWidthX
float baseHalfWidthZ
float halfHeight