class
MeshCollider
Inherits:
Collider
A collider represented by an arbitrary mesh.
Public
Constructors
MeshCollider
MeshCollider(const HSceneObject &parent)
Methods
SetMesh
void SetMesh(const HPhysicsMesh &mesh)
Determines a mesh that represents the collider geometry.
This can be a generic triangle mesh, or and convex mesh. Triangle meshes are not supported as triggers, nor are they supported for colliders that are parts of a non-kinematic rigidbody.
GetMesh
HPhysicsMesh GetMesh() const
staticGetRttiStatic
static RTTIType *GetRttiStatic()
Protected
Constructors
MeshCollider
MeshCollider()
Methods
OnCreated
void OnCreated() override
Called once when the component has been created.
Called regardless of the state the component is in.
IsValidParent
bool IsValidParent(const HRigidbody &parent) const override
Checks is the provided rigidbody a valid parent for this collider.
Fields
mMesh
HPhysicsMesh mMesh