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::EditorProxyShapeConfig Struct Reference

Proxy container for only displaying a specific shape configuration depending on the shapeType selected. More...

#include <EditorColliderComponent.h>

Public Member Functions

 AZ_CLASS_ALLOCATOR (EditorProxyShapeConfig, AZ::SystemAllocator)
 
 AZ_TYPE_INFO (EditorProxyShapeConfig, "{531FB42A-42A9-4234-89BA-FD349EF83D0C}")
 
 EditorProxyShapeConfig (const Physics::ShapeConfiguration &shapeConfiguration)
 
bool IsSphereConfig () const
 
bool IsBoxConfig () const
 
bool IsCapsuleConfig () const
 
bool IsCylinderConfig () const
 
Physics::ShapeConfiguration & GetCurrent ()
 
const Physics::ShapeConfiguration & GetCurrent () const
 
AZStd::shared_ptr< Physics::ShapeConfiguration > CloneCurrent () const
 
bool IsNonUniformlyScaledPrimitive () const
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

Physics::ShapeType m_shapeType = Physics::ShapeType::PhysicsAsset
 
Physics::SphereShapeConfiguration m_sphere
 
Physics::BoxShapeConfiguration m_box
 
Physics::CapsuleShapeConfiguration m_capsule
 
EditorProxyCylinderShapeConfig m_cylinder
 
LegacyEditorProxyAssetShapeConfig m_legacyPhysicsAsset
 
bool m_hasNonUniformScale = false
 Whether there is a non-uniform scale component on this entity.
 
AZ::u8 m_subdivisionLevel = 4
 The level of subdivision if a primitive shape is replaced with a convex mesh due to scaling.
 
Physics::CookedMeshShapeConfiguration m_cookedMesh
 

Detailed Description

Proxy container for only displaying a specific shape configuration depending on the shapeType selected.


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