Requests serviced by all forces used by force regions. More...
#include <ForceRegionForces.h>
Inherited by PhysX::ForceLinearDamping, PhysX::ForceLocalSpace, PhysX::ForcePoint, PhysX::ForceSimpleDrag, PhysX::ForceSplineFollow, and PhysX::ForceWorldSpace.
Public Member Functions | |
AZ_CLASS_ALLOCATOR (BaseForce, AZ::SystemAllocator) | |
AZ_RTTI (BaseForce, "{0D1DFFE1-16C1-425B-972B-DC70FDC61B56}") | |
virtual void | Activate (AZ::EntityId entityId) |
Connect to any buses. | |
virtual void | Deactivate () |
Disconnect from any buses. | |
virtual AZ::Vector3 | CalculateForce (const EntityParams &entityParams, const RegionParams &volumeParams) const =0 |
Calculate the size and direction the force. | |
Static Public Member Functions | |
static void | Reflect (AZ::SerializeContext &context) |
Protected Member Functions | |
void | NotifyChanged () |
Protected Attributes | |
AZ::EntityId | m_entityId |
Requests serviced by all forces used by force regions.
|
inlinevirtual |
Connect to any buses.
Reimplemented in PhysX::ForceWorldSpace, PhysX::ForceLocalSpace, PhysX::ForcePoint, PhysX::ForceSplineFollow, PhysX::ForceSimpleDrag, and PhysX::ForceLinearDamping.
|
pure virtual |
Calculate the size and direction the force.
Implemented in PhysX::ForceWorldSpace, PhysX::ForceLocalSpace, PhysX::ForcePoint, PhysX::ForceSplineFollow, PhysX::ForceSimpleDrag, and PhysX::ForceLinearDamping.
|
inlinevirtual |
Disconnect from any buses.
Reimplemented in PhysX::ForceWorldSpace, PhysX::ForceLocalSpace, PhysX::ForcePoint, PhysX::ForceSplineFollow, PhysX::ForceSimpleDrag, and PhysX::ForceLinearDamping.