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::JointsSubComponentModeSnapPosition Class Referencefinal

Inherits PhysX::JointsSubComponentModeSnap.

Public Member Functions

void Setup (const AZ::EntityComponentIdPair &idPair) override
 
void ResetValues (const AZ::EntityComponentIdPair &idPair) override
 
- Public Member Functions inherited from PhysX::JointsSubComponentModeSnap
virtual void Setup (const AZ::EntityComponentIdPair &idPair) override
 
virtual void Refresh (const AZ::EntityComponentIdPair &idPair) override
 
virtual void Teardown (const AZ::EntityComponentIdPair &idPair) override
 
void HandleMouseInteraction (const AzToolsFramework::ViewportInteraction::MouseInteractionEvent &mouseInteraction) override
 Additional mouse handling by sub-component mode. Does not absorb mouse event.
 
virtual void Setup (const AZ::EntityComponentIdPair &idPair)=0
 
virtual void Refresh (const AZ::EntityComponentIdPair &idPair)=0
 
virtual void Teardown (const AZ::EntityComponentIdPair &idPair)=0
 
virtual void ResetValues (const AZ::EntityComponentIdPair &idPair)=0
 
virtual void HandleMouseInteraction (const AzToolsFramework::ViewportInteraction::MouseInteractionEvent &mouseInteraction)
 Additional mouse handling by sub-component mode. Does not absorb mouse event.
 

Public Attributes

 AZ_CLASS_ALLOCATOR_DECL
 
- Public Attributes inherited from PhysX::JointsSubComponentModeSnap
 AZ_CLASS_ALLOCATOR_DECL
 

Protected Member Functions

void DisplaySpecificSnapType (const AzFramework::ViewportInfo &viewportInfo, AzFramework::DebugDisplayRequests &debugDisplay, const AZ::Vector3 &jointPosition, const AZ::Vector3 &snapDirection, float snapLength) override
 Override to draw specific snap type display.
 
- Protected Member Functions inherited from PhysX::JointsSubComponentModeSnap
AZStd::string GetPickedEntityName ()
 
AZ::Vector3 GetPosition () const
 
void DisplayEntityViewport (const AzFramework::ViewportInfo &viewportInfo, AzFramework::DebugDisplayRequests &debugDisplay) override
 
virtual void DisplaySpecificSnapType (const AzFramework::ViewportInfo &viewportInfo, AzFramework::DebugDisplayRequests &debugDisplay, const AZ::Vector3 &jointPosition, const AZ::Vector3 &snapDirection, float snapLength)
 Override to draw specific snap type display.
 

Additional Inherited Members

- Protected Attributes inherited from PhysX::JointsSubComponentModeSnap
EditorViewportEntityPicker m_picker
 
AZ::EntityId m_pickedEntity
 
AZ::Aabb m_pickedEntityAabb = AZ::Aabb::CreateNull()
 
AZ::Vector3 m_pickedPosition
 
AZ::EntityComponentIdPair m_entityComponentId
 
AZStd::shared_ptr< AzToolsFramework::LinearManipulator > m_manipulator
 

Member Function Documentation

◆ DisplaySpecificSnapType()

void PhysX::JointsSubComponentModeSnapPosition::DisplaySpecificSnapType ( const AzFramework::ViewportInfo &  viewportInfo,
AzFramework::DebugDisplayRequests &  debugDisplay,
const AZ::Vector3 &  jointPosition,
const AZ::Vector3 &  snapDirection,
float  snapLength 
)
overrideprotectedvirtual

Override to draw specific snap type display.

Reimplemented from PhysX::JointsSubComponentModeSnap.

◆ ResetValues()

void PhysX::JointsSubComponentModeSnapPosition::ResetValues ( const AZ::EntityComponentIdPair &  idPair)
overridevirtual

Called when reset hot key is pressed. Should reset values in the sub component mode to sensible defaults.

Parameters
idPairThe entity/component id pair.

Implements PhysX::PhysXSubComponentModeBase.

◆ Setup()

void PhysX::JointsSubComponentModeSnapPosition::Setup ( const AZ::EntityComponentIdPair &  idPair)
overridevirtual

Called when the mode is entered to initialize the mode.

Parameters
idPairThe entity/component id pair.

Reimplemented from PhysX::JointsSubComponentModeSnap.


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