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 <ForceRegionComponentBus.h>
Inherits AZ::EBusTraits.
Public Member Functions | |
virtual void | OnCalculateNetForce ([[maybe_unused]] AZ::EntityId forceRegionEntityId, [[maybe_unused]] AZ::EntityId targetEntityId, [[maybe_unused]] const AZ::Vector3 &netForceDirection, [[maybe_unused]] float netForceMagnitude) |
Dispatched when force region computes net force to send impulse on entity. | |
virtual void | OnForceRegionForceChanged ([[maybe_unused]] AZ::EntityId forceRegionEntityId) |
Dispatched when any force in force region is changed. | |
Static Public Attributes | |
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::Single |
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Multiple |
Notifications from force regions. This does not need to be a multi address bus currently as no components are listening to force region events. Only a global behavior handler is listening and forwarding force region events to script canvas.