physics.create_explosion method

create_explosion(self, origin: Vector3, radius: float, power: float) -> None:

Creates an explosion force that is applied to all physics-enabled items within radius from the origin. If power is negative, the force attracts items instead.

Parameters

  • origin: Vector3

    origin of explosion.

  • radius: float

    radius of explosion.

  • power: float

    strength of explosion.