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

#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)
 

Protected Member Functions

void Activate () override
 
void Deactivate () override
 
void OnPhysicsEnabled (const AZ::EntityId &entityId) override
 
void OnPhysicsDisabled (const AZ::EntityId &entityId) override
 
void DisplayEntityViewport (const AzFramework::ViewportInfo &viewportInfo, AzFramework::DebugDisplayRequests &debugDisplayRequests) override
 

Static Protected Member Functions

static void GetRequiredServices (AZ::ComponentDescriptor::DependencyArrayType &required)
 

Detailed Description

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.


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