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

#include <EditorShapeColliderComponent.h>

Inherits AzToolsFramework::Components::EditorComponentBase, AzToolsFramework::EntitySelectionEvents::Bus::Handler, AZ::TransformNotificationBus::Handler, PhysX::DebugDraw::DisplayCallback, LmbrCentral::ShapeComponentNotificationsBus::Handler, PhysX::ColliderShapeRequestBus::Handler, and AzPhysics::SimulatedBodyComponentRequestsBus::Handler.

Public Member Functions

 AZ_EDITOR_COMPONENT (EditorShapeColliderComponent, "{2389DDC7-871B-42C6-9C95-2A679DDA0158}", AzToolsFramework::Components::EditorComponentBase)
 
const AZStd::vector< AZ::Vector3 > & GetSamplePoints () const
 
virtual const Physics::ColliderConfiguration & GetColliderConfiguration () const
 
virtual const AZStd::vector< AZStd::shared_ptr< Physics::ShapeConfiguration > > & GetShapeConfigurations () const
 
Physics::ColliderConfiguration GetColliderConfigurationScaled () const
 
void BuildGameEntity (AZ::Entity *gameEntity) override
 

Static Public Member Functions

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

Additional Inherited Members

virtual void Display (const AzFramework::ViewportInfo &viewportInfo, AzFramework::DebugDisplayRequests &debugDisplay) const =0
 

Detailed Description

Editor PhysX Shape Collider Component. This component is used together with a shape component, and uses the shape information contained in that component to create geometry in the PhysX simulation.

Member Function Documentation

◆ GetColliderConfigurationScaled()

Physics::ColliderConfiguration PhysX::EditorShapeColliderComponent::GetColliderConfigurationScaled ( ) const

Returns a collider configuration with the entity scale applied to the collider position. Non-uniform scale is not applied here, because it is already stored in the collider position.


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