| 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:VectorA vector representing the collision's normal direction
| object | property |
public var object:CollisionObjectThe object with which a collision occured.
| penetration | property |
public var penetration:NumberThe amount of penetration (in pixels) which occured during the collision
| used | property |
public var used:Boolean = trueUsed by the engine to flag used data
| CollisionData | () | constructor |
public function CollisionData()
| dispose | () | method |
public function dispose():voidinheritDoc
| setInfo | () | method |
public function setInfo(obj:CollisionObject, n:Vector, pen:Number):voidQuickly set the properties of the collision data. Resets 'used' to false.
Parametersobj:CollisionObject |
|
n:Vector |
|
pen:Number |