Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Explode(ExplosionDefinition)

Apply a radial explosion applying impulses away from the position to all bodies found within in the radius.
Read time 1 minuteLast updated 9 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public void Explode(PhysicsWorld.ExplosionDefinition definition)

Parameters

The explosion definition describing how the explosion should be handled.