Struct Collider

struct Collider

Public Functions

inline void setShapeType(ShapeType newType)
inline ShapeType shapeType() const
inline SphereShape &sphereShape()
inline const SphereShape &sphereShape() const
inline BoxShape &boxShape()
inline const BoxShape &boxShape() const
inline CapsuleShape &capsuleShape()
inline const CapsuleShape &capsuleShape() const
inline CylinderShape &cylinderShape()
inline const CylinderShape &cylinderShape() const
inline ConeShape &coneShape()
inline const ConeShape &coneShape() const
inline PyramidShape &pyramidShape()
inline const PyramidShape &pyramidShape() const
inline void setOwner(P64::Object *newOwner)
inline P64::Object *ownerObject() 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 const AABB &worldAabb() const
inline const Matrix3x3 &rotationMatrix() const
inline const Matrix3x3 &inverseRotationMatrix() const
inline uint32_t worldStateVersion() const
fm_vec3_t support(const fm_vec3_t &dir) const
AABB boundingBox(const fm_quat_t *rotation) 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 readsCollider(const Collider *other) const
bool readsMeshCollider(const MeshCollider *other) const

Public Members

SphereShape sphere_
BoxShape box_
CapsuleShape capsule_
CylinderShape cylinder_
ConeShape cone_
PyramidShape pyramid_