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::Shape Class Reference

Inherits Physics::Shape, and AZStd::enable_shared_from_this< Shape >.

Public Member Functions

 AZ_CLASS_ALLOCATOR (Shape, AZ::SystemAllocator)
 
 AZ_RTTI (Shape, "{A84BCCA2-7F29-4E17-830F-911E7BB3E80C}", Physics::Shape)
 
 Shape (const Physics::ColliderConfiguration &colliderConfiguration, const Physics::ShapeConfiguration &configuration)
 
 Shape (physx::PxShape *nativeShape)
 
 Shape (Shape &&shape)
 
Shapeoperator= (Shape &&shape)
 
 Shape (const Shape &shape)=delete
 
Shapeoperator= (const Shape &shape)=delete
 
void SetMaterial (const AZStd::shared_ptr< Physics::Material > &material) override
 
AZStd::shared_ptr< Physics::Material > GetMaterial () const override
 
Physics::MaterialId GetMaterialId () const override
 
void SetCollisionLayer (const AzPhysics::CollisionLayer &layer) override
 
AzPhysics::CollisionLayer GetCollisionLayer () const override
 
void SetCollisionGroup (const AzPhysics::CollisionGroup &group) override
 
AzPhysics::CollisionGroup GetCollisionGroup () const override
 
void SetName (const char *name) override
 
void SetLocalPose (const AZ::Vector3 &offset, const AZ::Quaternion &rotation) override
 
AZStd::pair< AZ::Vector3, AZ::Quaternion > GetLocalPose () const override
 
float GetRestOffset () const override
 
float GetContactOffset () const override
 
void SetRestOffset (float restOffset) override
 
void SetContactOffset (float contactOffset) override
 
void * GetNativePointer () override
 
const void * GetNativePointer () const override
 
AZ::Crc32 GetTag () const override
 
void AttachedToActor (void *actor) override
 
void DetachedFromActor () override
 
AzPhysics::SceneQueryHit RayCast (const AzPhysics::RayCastRequest &worldSpaceRequest, const AZ::Transform &worldTransform) override
 
AzPhysics::SceneQueryHit RayCastLocal (const AzPhysics::RayCastRequest &localSpaceRequest) override
 
AZ::Aabb GetAabb (const AZ::Transform &worldTransform) const override
 
AZ::Aabb GetAabbLocal () const override
 
void GetGeometry (AZStd::vector< AZ::Vector3 > &vertices, AZStd::vector< AZ::u32 > &indices, const AZ::Aabb *optionalBounds=nullptr) const override
 
physx::PxShape * GetPxShape ()
 
void SetPhysXMaterials (const AZStd::vector< AZStd::shared_ptr< PhysX::Material >> &materials)
 
const AZStd::vector< AZStd::shared_ptr< PhysX::Material > > & GetPhysXMaterials ()
 
bool IsTrigger () const
 

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