Struct Collider¶
-
struct Collider¶
Public Functions
-
inline SphereShape &sphereShape()¶
-
inline const SphereShape &sphereShape() const¶
-
inline CapsuleShape &capsuleShape()¶
-
inline const CapsuleShape &capsuleShape() const¶
-
inline CylinderShape &cylinderShape()¶
-
inline const CylinderShape &cylinderShape() const¶
-
inline PyramidShape &pyramidShape()¶
-
inline const PyramidShape &pyramidShape() const¶
-
inline void setParentOffset(const fm_vec3_t &newParentOffset)¶
-
inline const fm_vec3_t &parentOffset() const¶
-
inline void setBounce(float newBounce)¶
-
inline float bounce() const¶
-
inline void setFriction(float newFriction)¶
-
inline float friction() const¶
-
inline void setTrigger(bool newIsTrigger)¶
-
inline bool isTrigger() const¶
-
inline void setCollisionMask(uint8_t newReadMask, uint8_t newWriteMask)¶
-
inline uint8_t readMask() const¶
-
inline uint8_t writeMask() const¶
-
inline const fm_vec3_t &worldCenter() const¶
-
inline uint32_t worldStateVersion() const¶
-
fm_vec3_t support(const fm_vec3_t &dir) const¶
-
fm_vec3_t inertiaTensor(float mass) const¶
-
fm_vec3_t toWorldSpace(const fm_vec3_t &localPoint) const¶
-
fm_vec3_t toLocalSpace(const fm_vec3_t &worldPoint) const¶
-
fm_vec3_t rotateToWorld(const fm_vec3_t &localDir) const¶
-
fm_vec3_t rotateToLocal(const fm_vec3_t &worldDir) const¶
-
bool hasOwnerTransformChanged() const¶
-
void syncOwnerTransform()¶
-
bool syncFromRigidBody(const fm_vec3_t &rbPosition, const fm_quat_t &rbRotation)¶
-
bool syncWorldState()¶
-
bool readsMeshCollider(const MeshCollider *other) const¶
Public Members
-
SphereShape sphere_¶
-
CapsuleShape capsule_¶
-
CylinderShape cylinder_¶
-
PyramidShape pyramid_¶
-
inline SphereShape &sphereShape()¶