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.
PhysX::ForceRegionRequests Class Referenceabstract

Requests serviced by a force region. More...

#include <ForceRegionComponentBus.h>

Inherits AZ::ComponentBus.

Public Member Functions

virtual void AddForceWorldSpace (const AZ::Vector3 &direction, float magnitude)=0
 
virtual void AddForceLocalSpace (const AZ::Vector3 &direction, float magnitude)=0
 
virtual void AddForcePoint (float magnitude)=0
 Adds a point force to the force region.
 
virtual void AddForceSplineFollow (float dampingRatio, float frequency, float targetSpeed, float lookAhead)=0
 Adds a spline follow force to the force region.
 
virtual void AddForceSimpleDrag (float dragCoefficient, float volumeDensity)=0
 Adds a simple drag force to the force region.
 
virtual void AddForceLinearDamping (float damping)=0
 Adds a linear damping force to the force region.
 

Detailed Description

Requests serviced by a force region.

Member Function Documentation

◆ AddForceLocalSpace()

virtual void PhysX::ForceRegionRequests::AddForceLocalSpace ( const AZ::Vector3 &  direction,
float  magnitude 
)
pure virtual

Adds a local space force to the force region. A local space force region takes into account changes in the entity's transform.

◆ AddForceWorldSpace()

virtual void PhysX::ForceRegionRequests::AddForceWorldSpace ( const AZ::Vector3 &  direction,
float  magnitude 
)
pure virtual

Adds a world space force to the force region. A world space force region does not account for changes in the entity's transform.


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