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

Component used to simulate a hierarchy of rigid bodies connected by joints, typically used for characters. More...

#include <RagdollComponent.h>

Inherits AZ::Component, AzFramework::RagdollPhysicsRequestBus::Handler, AzPhysics::SimulatedBodyComponentRequestsBus::Handler, and AzFramework::CharacterPhysicsDataNotificationBus::Handler.

Public Member Functions

 AZ_COMPONENT (PhysX::RagdollComponent, "{B89498F8-4718-42FE-A457-A377DD0D61A0}")
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 
static void GetProvidedServices (AZ::ComponentDescriptor::DependencyArrayType &provided)
 
static void GetIncompatibleServices (AZ::ComponentDescriptor::DependencyArrayType &incompatible)
 
static void GetRequiredServices (AZ::ComponentDescriptor::DependencyArrayType &required)
 
static void GetDependentServices (AZ::ComponentDescriptor::DependencyArrayType &dependent)
 

Protected Member Functions

void Init () override
 
void Activate () override
 
void Deactivate () override
 
void EnableSimulation (const Physics::RagdollState &initialState) override
 
void EnableSimulationQueued (const Physics::RagdollState &initialState) override
 
void DisableSimulation () override
 
void DisableSimulationQueued () override
 
Physics::Ragdoll * GetRagdoll () override
 
void GetState (Physics::RagdollState &ragdollState) const override
 
void SetState (const Physics::RagdollState &ragdollState) override
 
void SetStateQueued (const Physics::RagdollState &ragdollState) override
 
void GetNodeState (size_t nodeIndex, Physics::RagdollNodeState &nodeState) const override
 
void SetNodeState (size_t nodeIndex, const Physics::RagdollNodeState &nodeState) override
 
Physics::RagdollNode * GetNode (size_t nodeIndex) const override
 
void EnablePhysics () override
 
void DisablePhysics () override
 
bool IsPhysicsEnabled () const override
 
AZ::Aabb GetAabb () const override
 
AzPhysics::SimulatedBody * GetSimulatedBody () override
 
AzPhysics::SimulatedBodyHandle GetSimulatedBodyHandle () const override
 
AzPhysics::SceneQueryHit RayCast (const AzPhysics::RayCastRequest &request) override
 
void OnRagdollConfigurationReady (const Physics::RagdollConfiguration &ragdollConfiguration) override
 
void EnterRagdoll () override
 
void ExitRagdoll () override
 

Detailed Description

Component used to simulate a hierarchy of rigid bodies connected by joints, typically used for characters.


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