The Explosive Force emits a force explosion at the component's location when executed. The force is stronger at the center and becomes weaker depending on the Radius and Max Force Radius settings.
Parameters are accessed by selecting the Explosive Force component.
Execute | Executes the component. |
On Start | Executes the component at the start of the Hype. |
Always | Executes the component on each frame. |
Enabled | Determines if the component is executable. |
Force | Explosion force amount. |
Radius | Radius for the explosion. No force is applied outside of this radius. |
Max Force Radius | Radius for the maximum force from the center. Outside of this radius the amount of force decreases until it reaches the Radius. |
Max Speed | Maximum speed applied by the force. |
Group Filter | Select the Object Groups you would like to be affected by the Explosive Force. |
Explosive Barrel
Set-Up: We have a barrel surrounded by various objects. The barrel is already set up with Physical, Collision Trigger, Destroyer and Particle Effect components so that it visibly explodes when hit. The objects surrounding the barrel already have a Physical component set so that they can react to outside force dynamically. We need to apply an explosive force so that items near the barrel are pushed away when it explodes.
Step 1: Spawn an Explosive Force component. The component can be used as a standalone component or embedded directly into an object. In this case we recommend embedding the force in the object that will explode so that it can easily be instanced and duplicated for multiple uses throughout the Hype.
Step 2: Set up the Explosive Force
Step 3: Trigger the Explosive Force. Our barrel already has a Collision Trigger that executes the Particle Effect and Destroyer. We'll add the Explosive Force to be triggered On Collision Start with the other two components.
Now we test. If all is well our barrel will explode, pushing away the surrounding objects when it is struck.