Explosion force

Simulate an explosion with physics forces on target objects

Authors and contributors to this community extension: VictrisGames.


Apply explosion-like physics forces to target objects that are inside the explosion radius. Forces push the target objects away from the explosion center. The force applied is stronger the closer the target object is to the explosion center. Target objects will be changed to “Dynamic” physics objects.

Requirements:

  • Target Objects must have physics behavior
  • The action “Pick all instances” of Target Objects MUST be used directly above this action.

Object Variables (Target Objects):

  • ExplosionForce.Exploded” (boolean) - “ExplosionForce.Magnitude” (number)

Tips:

  • Start objects as “Static” physics objects so they won't move or fall over until the explosion automatically converts them to “Dynamic”.
  • Use the “__ExplosionForce.Exploded” object variable to manage objects that were affected by an explosion. (For instance, start an opacity tween that fades away and deletes the objects.)
  • If your game freezes during an explosion, try using smaller radius or max force values.

This page is an auto-generated reference page about the Explosion force extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.