Package | flare.physics |
Class | public class Contact |
Inheritance | Contact ![]() |
See also
Property | Defined By | ||
---|---|---|---|
collider0 : Collider
First of two colliders involved in this contact. | Contact | ||
collider1 : Collider
Second of two colliders involved in this contact. | Contact | ||
depth : Number
Max amount of overlaping between the two colliders when more than one contact is invoved. | Contact | ||
edge : Edge
The triangle edge involved in this contact if any. | Contact | ||
normalX : Number
X-Axis normal in world space. | Contact | ||
normalY : Number
Y-Axis normal in world space. | Contact | ||
normalZ : Number
Z-Axis Normal in world space. | Contact | ||
overlap : Number
Amount of overlaping between the two colliders for this contact. | Contact | ||
parent0 : Collider
First of two parent colliders if any, where all the impulses and transformations will be applied. | Contact | ||
parent1 : Collider
Second of two parent colliders if any, where all the impulses and transformations will be applied. | Contact | ||
posX : Number
X-Axis position in world space. | Contact | ||
posY : Number
Y-Axis position in world space. | Contact | ||
posZ : Number
Z-Axis position in world space. | Contact | ||
tri : Triangle
The triangle involved in this contact if any. | Contact |
Method | Defined By | ||
---|---|---|---|
Contact()
Creates a new contact point. | Contact | ||
preSolve():void
Does all the mathematical computations needed for the solving phase. | Contact | ||
solve():void
Solves one iteration of the contact. | Contact |
collider0 | property |
public var collider0:Collider
First of two colliders involved in this contact. Colliders are stored in no specific order and could be swapped at any time. For uni-directional data, see ContactData class
See also
collider1 | property |
public var collider1:Collider
Second of two colliders involved in this contact. Colliders are stored in no specific order and could be swapped at any time. For uni-directional data, see ContactData class
See also
depth | property |
public var depth:Number
Max amount of overlaping between the two colliders when more than one contact is invoved.
edge | property |
public var edge:Edge
The triangle edge involved in this contact if any.
normalX | property |
public var normalX:Number
X-Axis normal in world space.
normalY | property |
public var normalY:Number
Y-Axis normal in world space.
normalZ | property |
public var normalZ:Number
Z-Axis Normal in world space.
overlap | property |
public var overlap:Number
Amount of overlaping between the two colliders for this contact.
parent0 | property |
public var parent0:Collider
First of two parent colliders if any, where all the impulses and transformations will be applied. A child collider has no effect on itself, but on its parent.
parent1 | property |
public var parent1:Collider
Second of two parent colliders if any, where all the impulses and transformations will be applied. A child collider has no effect on itself, but on its parent.
posX | property |
public var posX:Number
X-Axis position in world space.
posY | property |
public var posY:Number
Y-Axis position in world space.
posZ | property |
public var posZ:Number
Z-Axis position in world space.
tri | property |
public var tri:Triangle
The triangle involved in this contact if any.
Contact | () | Constructor |
public function Contact()
Creates a new contact point. Contacts are created automatically by the physics engine, you don't need to create these manually.
preSolve | () | method |
public final function preSolve():void
Does all the mathematical computations needed for the solving phase.
solve | () | method |
public final function solve():void
Solves one iteration of the contact.