Static rigid body.
More...
#include <StaticRigidBody.h>
Inherits AzPhysics::SimulatedBody.
|
static void | Reflect (AZ::ReflectContext *context) |
|
Static Public Member Functions inherited from AzPhysics::SimulatedBody |
static void | Reflect (AZ::ReflectContext *context) |
|
|
| AZ_CLASS_ALLOCATOR_DECL |
|
Public Attributes inherited from AzPhysics::SimulatedBody |
| AZ_CLASS_ALLOCATOR_DECL |
|
SceneHandle | m_sceneOwner = AzPhysics::InvalidSceneHandle |
| The current Scene the simulated body is contained.
|
|
SimulatedBodyHandle | m_bodyHandle = AzPhysics::InvalidSimulatedBodyHandle |
| The handle to this simulated body.
|
|
bool | m_simulating = false |
|
|
Static Public Attributes inherited from AzPhysics::SimulatedBody |
static constexpr uint32_t | UndefinedFrameId = AZStd::numeric_limits<uint32_t>::max() |
|
◆ AddShape()
virtual void AzPhysics::StaticRigidBody::AddShape |
( |
AZStd::shared_ptr< Physics::Shape > |
shape | ) |
|
|
pure virtual |
Add a shape to the static rigid body.
- Parameters
-
shape | A shared pointer of the shape to add. |
◆ GetShape()
virtual AZStd::shared_ptr<Physics::Shape> AzPhysics::StaticRigidBody::GetShape |
( |
[[maybe_unused] ] AZ::u32 |
index | ) |
|
|
inlinevirtual |
Returns a shared pointer to the requested shape index.
- Parameters
-
index | The index of the shapes to return. Expected to be between 0 and GetShapeCount(). |
- Returns
- Returns a shared pointer of the shape requested or nullptr if index is out of bounds.
◆ GetShapeCount()
virtual AZ::u32 AzPhysics::StaticRigidBody::GetShapeCount |
( |
| ) |
const |
|
inlinevirtual |
Returns the number of shapes that make up this static rigid body.
- Returns
- Returns the number of shapes as a AZ::u32.
The documentation for this struct was generated from the following file:
- Code/Framework/AzFramework/AzFramework/Physics/SimulatedBodies/StaticRigidBody.h