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::ForceRegion Class Reference

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)
 

Detailed Description

Force region internal representation. Computes net force exerted on bodies in a force region.


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