| Property | Defined by | ||
|---|---|---|---|
| body1 : IBody
First body involved in collision (arbitrary)
| Contact | ||
| body2 : IBody
Second body involved in collision (arbitrary)
| Contact | ||
| normal : Vector
Collision normal
| Contact | ||
| position : Vector
Point of contact in world coordinates
| Contact | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new contact
| Contact | ||
| body1 | property |
public var body1:IBodyFirst body involved in collision (arbitrary)
| body2 | property |
public var body2:IBodySecond body involved in collision (arbitrary)
| normal | property |
public var normal:VectorCollision normal
| position | property |
public var position:VectorPoint of contact in world coordinates
| Contact | () | constructor |
public function Contact(position:Vector, body1:IBody, body2:IBody, normal:Vector)Creates a new contact
Parametersposition:Vector — point of contact in world coordinates
|
|
body1:IBody — first body involved in collision
|
|
body2:IBody — second body involved in collision
|
|
normal:Vector — contact normal
|