|
RavEngine
|
Public Member Functions | |
| MeshCollider (PhysicsBodyComponent *owner, Ref< MeshAsset > mesh, Ref< PhysicsMaterial > mat) | |
| void | DebugDraw (RavEngine::DebugDrawer &dbg, color_t, const RavEngine::Transform &) const override |
Public Member Functions inherited from RavEngine::PhysicsCollider | |
| void | UpdateFilterData (PhysicsBodyComponent *owner) |
| void | SetType (CollisionType) |
| CollisionType | GetType () const |
| void | SetQueryable (bool) |
| bool | GetQueryable () const |
| void | SetRelativeTransform (const vector3 &position, const quaternion &rotation) |
| Transformation | GetRelativeTransform () const |
Public Attributes | |
| Ref< MeshAsset > | mesh |
Additional Inherited Members | |
Public Types inherited from RavEngine::PhysicsCollider | |
| enum class | CollisionType { Trigger , Collider } |
Protected Member Functions inherited from RavEngine::PhysicsCollider | |
| matrix4 | CalculateWorldMatrix (const RavEngine::Transform &) const |
Protected Attributes inherited from RavEngine::PhysicsCollider | |
| physx::PxShape * | collider = nullptr |
| Ref< PhysicsMaterial > | material |
| MeshCollider::MeshCollider | ( | PhysicsBodyComponent * | owner, |
| Ref< MeshAsset > | mesh, | ||
| Ref< PhysicsMaterial > | mat | ||
| ) |
Create a MeshCollider given a MeshAsset physics material
| mesh | the MeshAsset to use |
| mat | the PhysicsMaterial to use |
|
overridevirtual |
Reimplemented from RavEngine::PhysicsCollider.