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.
|
Class for a world space force exerted on bodies in a force region. More...
#include <ForceRegionForces.h>
Inherits PhysX::BaseForce, and ForceWorldSpaceRequestBus::Handler.
Public Member Functions | |
AZ_CLASS_ALLOCATOR (ForceWorldSpace, AZ::SystemAllocator) | |
AZ_RTTI (ForceWorldSpace, "{A6C17DD3-7A09-4BC7-8ACC-C0BD04EA8F7C}", BaseForce) | |
ForceWorldSpace (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 world space force exerted on bodies in a force region.