|
| enum class | CollisionType { Trigger
, Collider
} |
| |
|
|
class | PhysicsBodyComponent |
| |
◆ CalculateWorldMatrix()
- Returns
- the world matrix including rotation and position offsets
- Precondition
- This collider must be attached to an object
◆ DebugDraw()
◆ GetQueryable()
| bool RavEngine::PhysicsCollider::GetQueryable |
( |
| ) |
const |
- Returns
- if the scene is queryable (see SetQueryable)
- Precondition
- This component must be added to an entity with a PhysicsBodyComponent before using this call.
◆ GetRelativeTransform()
- Returns
- relative transformation of this collider to the owning entity
◆ GetType()
| PhysicsCollider::CollisionType RavEngine::PhysicsCollider::GetType |
( |
| ) |
const |
- Returns
- if the current collider is a trigger or not
- Precondition
- This component must be added to an entity with a PhysicsBodyComponent before using this call.
◆ SetQueryable()
| void RavEngine::PhysicsCollider::SetQueryable |
( |
bool |
state | ) |
|
Set whether the collider participates in scene queries (raycasts, overlaps, etc)
- Parameters
-
- Precondition
- This component must be added to an entity with a PhysicsBodyComponent before using this call.
◆ SetRelativeTransform()
Set PxShape relative transformation
- Parameters
-
| position | the relative location of the shape |
| rotation | the relative rotation of the shape |
◆ SetType()
| void RavEngine::PhysicsCollider::SetType |
( |
CollisionType |
type | ) |
|
Set the state to collider or trigger.
- Parameters
-
- Precondition
- This component must be added to an entity with a PhysicsBodyComponent before using this call.
The documentation for this class was generated from the following files: