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.
|
#include <ForceRegionComponent.h>
Inherits AZ::Component, Physics::RigidBodyNotificationBus::Handler, and AzFramework::EntityDebugDisplayEventBus::Handler.
Public Member Functions | |
AZ_COMPONENT (ForceRegionComponent, ForceRegionComponentTypeId) | |
ForceRegionComponent (ForceRegion &&forceRegion, bool debug) | |
Static Public Member Functions | |
static void | Reflect (AZ::ReflectContext *context) |
Static Protected Member Functions | |
static void | GetRequiredServices (AZ::ComponentDescriptor::DependencyArrayType &required) |
ForceRegionComponent Applies a forces to objects within a region. Uses a PhysX trigger collider to receive notifications about entities entering and exiting the region. A net force will be calculated per entity by summing all the attached forces on each tick.