Class for a local space force exerted on bodies in a force region. More...
#include <ForceRegionForces.h>
Inherits PhysX::BaseForce, and ForceLocalSpaceRequestBus::Handler.
Public Member Functions | |
| AZ_CLASS_ALLOCATOR (ForceLocalSpace, AZ::SystemAllocator) | |
| AZ_RTTI (ForceLocalSpace, "{F0EAFB7C-1BC7-4497-99AE-ECBF7169AB81}", BaseForce) | |
| ForceLocalSpace (const AZ::Vector3 &direction, float magnitude) | |
| AZ::Vector3 | CalculateForce (const EntityParams &entity, const RegionParams ®ion) const override |
| Calculate the size and direction the force. | |
| void | Activate (AZ::EntityId entityId) override |
| Connect to any buses. | |
| void | Deactivate () override |
| Disconnect from any buses. | |
Public Member Functions inherited from PhysX::BaseForce | |
| AZ_CLASS_ALLOCATOR (BaseForce, AZ::SystemAllocator) | |
| AZ_RTTI (BaseForce, "{0D1DFFE1-16C1-425B-972B-DC70FDC61B56}") | |
Static Public Member Functions | |
| static void | Reflect (AZ::ReflectContext *context) |
Static Public Member Functions inherited from PhysX::BaseForce | |
| static void | Reflect (AZ::SerializeContext &context) |
Additional Inherited Members | |
Protected Member Functions inherited from PhysX::BaseForce | |
| void | NotifyChanged () |
Protected Attributes inherited from PhysX::BaseForce | |
| AZ::EntityId | m_entityId |
Class for a local space force exerted on bodies in a force region.
|
inlineoverridevirtual |
Connect to any buses.
Reimplemented from PhysX::BaseForce.
|
overridevirtual |
Calculate the size and direction the force.
Implements PhysX::BaseForce.
|
inlineoverridevirtual |
Disconnect from any buses.
Reimplemented from PhysX::BaseForce.