ProximityExplosion

class ProximityExplosion(epicentre: Vec2, proximity: Int) : Explosion

Models proximity explosions.

Constructors

Link copied to clipboard
fun ProximityExplosion(epicentre: Vec2, proximity: Int)

Functions

Link copied to clipboard
open override fun applyBlastImpulse(blastPower: Double)

Applies blast impulse to all effected bodies centre of mass.

Link copied to clipboard
fun getEpicentre(): Vec2
Link copied to clipboard
open override fun setEpicentre(v: Vec2)

Sets the epicentre to a different coordinate.

Link copied to clipboard
open override fun update(bodiesToEvaluate: ArrayList<TranslatableBody>)

Updates the arraylist to reevaluate what bodies are effected/within the proximity.

Link copied to clipboard
fun updateLinesToBody()

Updates the lines to body array for the debug drawer.

Properties

Link copied to clipboard
val linesToBodies: ArrayList<Vec2?>
Link copied to clipboard
val proximity: Int