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.
|
#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 |
Additional Inherited Members |
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.
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.