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::EditorPrimitiveColliderComponentRequests Class Referenceabstract

Request bus for colliders using primitive shapes. More...

#include <EditorColliderComponentRequestBus.h>

Inherits AZ::EntityComponentBus.

Public Member Functions

virtual void SetShapeType (Physics::ShapeType)=0
 
virtual void SetBoxDimensions (const AZ::Vector3 &dimensions)=0
 
virtual AZ::Vector3 GetBoxDimensions () const =0
 
virtual void SetSphereRadius (float radius)=0
 
virtual float GetSphereRadius () const =0
 
virtual void SetCapsuleRadius (float radius)=0
 
virtual float GetCapsuleRadius () const =0
 
virtual void SetCapsuleHeight (float height)=0
 
virtual float GetCapsuleHeight () const =0
 
virtual void SetCylinderRadius (float radius)=0
 
virtual float GetCylinderRadius () const =0
 
virtual void SetCylinderHeight (float height)=0
 
virtual float GetCylinderHeight () const =0
 
virtual void SetCylinderSubdivisionCount (AZ::u8 subdivisionCount)=0
 
virtual AZ::u8 GetCylinderSubdivisionCount () const =0
 

Detailed Description

Request bus for colliders using primitive shapes.

Member Function Documentation

◆ GetBoxDimensions()

virtual AZ::Vector3 PhysX::EditorPrimitiveColliderComponentRequests::GetBoxDimensions ( ) const
pure virtual

Get the X/Y/Z dimensions of the box collider.

Returns
The X/Y/Z dimensions of the box collider.

◆ GetCapsuleHeight()

virtual float PhysX::EditorPrimitiveColliderComponentRequests::GetCapsuleHeight ( ) const
pure virtual

Gets the height of the capsule collider.

Returns
The height of the capsule collider.

◆ GetCapsuleRadius()

virtual float PhysX::EditorPrimitiveColliderComponentRequests::GetCapsuleRadius ( ) const
pure virtual

Gets the radius of the capsule collider.

Returns
The radius of the capsule collider.

◆ GetCylinderHeight()

virtual float PhysX::EditorPrimitiveColliderComponentRequests::GetCylinderHeight ( ) const
pure virtual

Gets the height of the cylinder collider.

Returns
The height of the cylinder collider.

◆ GetCylinderRadius()

virtual float PhysX::EditorPrimitiveColliderComponentRequests::GetCylinderRadius ( ) const
pure virtual

Gets the radius of the cylinder collider.

Returns
The radius of the cylinder collider.

◆ GetCylinderSubdivisionCount()

virtual AZ::u8 PhysX::EditorPrimitiveColliderComponentRequests::GetCylinderSubdivisionCount ( ) const
pure virtual

Gets the subdivision count of the cylinder collider.

Returns
The subdivision count of the cylinder collider.

◆ GetSphereRadius()

virtual float PhysX::EditorPrimitiveColliderComponentRequests::GetSphereRadius ( ) const
pure virtual

Gets the radius of the sphere collider.

Returns
The radius of the sphere collider.

◆ SetBoxDimensions()

virtual void PhysX::EditorPrimitiveColliderComponentRequests::SetBoxDimensions ( const AZ::Vector3 &  dimensions)
pure virtual

Set the X/Y/Z dimensions of the box collider.

Parameters
dimensionsThe X/Y/Z dimensions of the box collider.

◆ SetCapsuleHeight()

virtual void PhysX::EditorPrimitiveColliderComponentRequests::SetCapsuleHeight ( float  height)
pure virtual

Sets the height of the capsule collider.

Parameters
radiusThe height of the capsule collider.

◆ SetCapsuleRadius()

virtual void PhysX::EditorPrimitiveColliderComponentRequests::SetCapsuleRadius ( float  radius)
pure virtual

Sets the radius of the capsule collider.

Parameters
radiusThe radius of the capsule collider.

◆ SetCylinderHeight()

virtual void PhysX::EditorPrimitiveColliderComponentRequests::SetCylinderHeight ( float  height)
pure virtual

Sets the height of the cylinder collider.

Parameters
radiusThe height of the cylinder collider.

◆ SetCylinderRadius()

virtual void PhysX::EditorPrimitiveColliderComponentRequests::SetCylinderRadius ( float  radius)
pure virtual

Sets the radius of the cylinder collider.

Parameters
radiusThe radius of the cylinder collider.

◆ SetCylinderSubdivisionCount()

virtual void PhysX::EditorPrimitiveColliderComponentRequests::SetCylinderSubdivisionCount ( AZ::u8  subdivisionCount)
pure virtual

Sets the subdivision count of the cylinder collider.

Parameters
radiusThe subdivision count of the cylinder collider.

◆ SetShapeType()

virtual void PhysX::EditorPrimitiveColliderComponentRequests::SetShapeType ( Physics::ShapeType  )
pure virtual

Sets the shape type on the collider.

Parameters
Thecollider's shape type.

◆ SetSphereRadius()

virtual void PhysX::EditorPrimitiveColliderComponentRequests::SetSphereRadius ( float  radius)
pure virtual

Sets the radius of the sphere collider.

Parameters
radiusThe radius of the sphere collider.

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