Raycast Explosion
class RaycastExplosion(epicentre: Vec2, noOfRays: Int, distance: Double, worldBodies: ArrayList<TranslatableBody>) : Explosion
Content copied to clipboard
Models raycast explosions.
Parameters
epicentre
The epicentre of the explosion.
no Of Rays
Number of projected rays.
distance
Distance of projected rays.
world Bodies
The world the rays effect and are projected in.
Constructors
Link copied to clipboard
fun RaycastExplosion(epicentre: Vec2, noOfRays: Int, distance: Double, worldBodies: ArrayList<TranslatableBody>)
Content copied to clipboard
Functions
Link copied to clipboard
Applies a blast impulse to the effected bodies.
Link copied to clipboard
Sets the epicentre to a different coordinate.
Link copied to clipboard
Updates the arraylist to reevaluate what objects are effected/within the proximity.