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.
|
Force region internal representation. Computes net force exerted on bodies in a force region. More...
#include <ForceRegion.h>
Inherits AZ::TransformNotificationBus::MultiHandler, LmbrCentral::SplineComponentNotificationBus::Handler, PhysX::ForceRegionRequestBus::Handler, and Physics::ColliderComponentEventBus::Handler.
Public Member Functions | |
AZ_CLASS_ALLOCATOR (ForceRegion, AZ::SystemAllocator) | |
AZ_TYPE_INFO (ForceRegion, "{A04BF43D-242B-4B67-AEE9-201FBD36DFEB}") | |
ForceRegion (const ForceRegion &forceRegion) | |
void | Activate (AZ::EntityId entityId) |
void | Deactivate () |
void | AddAndActivateForce (AZStd::unique_ptr< BaseForce > force) |
Add a force to this force region and activate it. | |
AZ::Vector3 | CalculateNetForce (const EntityParams &entity) const |
Computes net force exerted on an entity. | |
void | ClearForces () |
Removes all forces in force region. | |
PhysX::RegionParams | GetRegionParams () const |
Get region parameters - entity ID, position, rotation, spline, AABB. | |
Static Public Member Functions | |
static void | Reflect (AZ::ReflectContext *context) |
Force region internal representation. Computes net force exerted on bodies in a force region.