Due to the way the projectile physics simulation works, you cannot use the engine volume triggers.
This class was created to allow you to trigger an event if the projectile enters and leaves a volume [Sphere, Box, Capsule]. You will also have the possibility of influencing the simulation of the projectile by modifying its velocity or time dilation, for example.
Class Functions #
- On Projectile Begin Overlap : Called when the projectile enters the volume.
- On Projectile End Overlap : Called when the projectile exits the volume.
- Modify Projectile Simulation : Quick access to the projectile’s actor as well as its velocity. This function is only called once when the projectile enters the volume. You must return its new velocity.
Class Settings #
- bBlockProjectile : The volume acts like an invisible wall that is impenetrable for a projectile regardless of its velocity.
Example #
I use this volume for a localized slow motion effect on the projectile.