Open 3D Engine PhysX Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
PhysX::RigidBody Class Reference

PhysX specific implementation of generic physics API RigidBody class. More...

#include <RigidBody.h>

Inherits AzPhysics::RigidBody.

Public Member Functions

 AZ_CLASS_ALLOCATOR (RigidBody, AZ::SystemAllocator)
 
 AZ_RTTI (PhysX::RigidBody, "{30CD41DD-9783-47A1-B935-9E5634238F45}", AzPhysics::RigidBody)
 
 RigidBody (const AzPhysics::RigidBodyConfiguration &configuration)
 
AZ::u32 GetShapeCount () const override
 
AZStd::shared_ptr< Physics::Shape > GetShape (AZ::u32 index) override
 
AZStd::shared_ptr< const Physics::Shape > GetShape (AZ::u32 index) const override
 
AZ::Vector3 GetCenterOfMassWorld () const override
 
AZ::Vector3 GetCenterOfMassLocal () const override
 
AZ::Matrix3x3 GetInertiaWorld () const override
 
AZ::Matrix3x3 GetInertiaLocal () const override
 
AZ::Matrix3x3 GetInverseInertiaWorld () const override
 
AZ::Matrix3x3 GetInverseInertiaLocal () const override
 
float GetMass () const override
 
float GetInverseMass () const override
 
void SetMass (float mass) override
 
void SetCenterOfMassOffset (const AZ::Vector3 &comOffset) override
 
AZ::Vector3 GetLinearVelocity () const override
 
void SetLinearVelocity (const AZ::Vector3 &velocity) override
 
AZ::Vector3 GetAngularVelocity () const override
 
void SetAngularVelocity (const AZ::Vector3 &angularVelocity) override
 
AZ::Vector3 GetLinearVelocityAtWorldPoint (const AZ::Vector3 &worldPoint) const override
 
void ApplyLinearImpulse (const AZ::Vector3 &impulse) override
 
void ApplyLinearImpulseAtWorldPoint (const AZ::Vector3 &impulse, const AZ::Vector3 &worldPoint) override
 
void ApplyAngularImpulse (const AZ::Vector3 &angularImpulse) override
 
bool IsKinematic () const override
 
void SetKinematic (bool isKinematic) override
 
void SetKinematicTarget (const AZ::Transform &targetPosition) override
 
bool IsGravityEnabled () const override
 
void SetGravityEnabled (bool enabled) override
 
void SetSimulationEnabled (bool enabled) override
 
void SetCCDEnabled (bool enabled) override
 
AZ::Transform GetTransform () const override
 
void SetTransform (const AZ::Transform &transform) override
 
AZ::Vector3 GetPosition () const override
 
AZ::Quaternion GetOrientation () const override
 
AZ::Aabb GetAabb () const override
 
AZ::EntityId GetEntityId () const override
 
AzPhysics::SceneQueryHit RayCast (const AzPhysics::RayCastRequest &request) override
 
AZ::Crc32 GetNativeType () const override
 
void * GetNativePointer () const override
 
float GetLinearDamping () const override
 
void SetLinearDamping (float damping) override
 
float GetAngularDamping () const override
 
void SetAngularDamping (float damping) override
 
bool IsAwake () const override
 
void ForceAsleep () override
 
void ForceAwake () override
 
float GetSleepThreshold () const override
 
void SetSleepThreshold (float threshold) override
 
bool ShouldStartAsleep () const
 
void SetName (const AZStd::string &entityName)
 
const AZStd::string & GetName () const
 
void AddShape (AZStd::shared_ptr< Physics::Shape > shape) override
 
void RemoveShape (AZStd::shared_ptr< Physics::Shape > shape) override
 
void UpdateMassProperties (AzPhysics::MassComputeFlags flags=AzPhysics::MassComputeFlags::DEFAULT, const AZ::Vector3 &centerOfMassOffsetOverride=AZ::Vector3::CreateZero(), const AZ::Matrix3x3 &inertiaTensorOverride=AZ::Matrix3x3::CreateIdentity(), const float massOverride=1.0f) override
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Friends

class RigidBodyComponent
 

Detailed Description

PhysX specific implementation of generic physics API RigidBody class.


The documentation for this class was generated from the following file: