Package | com.fileitup.fisixengine.collisions |
Class | public class CollisionData |
Property | Defined by | ||
---|---|---|---|
normal : Vector
A vector representing the collision's normal direction
| CollisionData | ||
object : CollisionObject
The object with which a collision occured.
| CollisionData | ||
penetration : Number The amount of penetration (in pixels) which occured during the collision
| CollisionData | ||
used : Boolean = true Used by the engine to flag used data
| CollisionData |
Method | Defined by | ||
---|---|---|---|
CollisionData | |||
dispose():void
inheritDoc
| CollisionData | ||
Quickly set the properties of the collision data.
| CollisionData |
normal | property |
public var normal:Vector
A vector representing the collision's normal direction
object | property |
public var object:CollisionObject
The object with which a collision occured.
penetration | property |
public var penetration:Number
The amount of penetration (in pixels) which occured during the collision
used | property |
public var used:Boolean = true
Used by the engine to flag used data
CollisionData | () | constructor |
public function CollisionData()
dispose | () | method |
public function dispose():void
inheritDoc
setInfo | () | method |
public function setInfo(obj:CollisionObject, n:Vector, pen:Number):void
Quickly set the properties of the collision data. Resets 'used' to false.
Parametersobj:CollisionObject |
|
n:Vector |
|
pen:Number |