Package | Box2D.Collision |
Class | public class b2ContactPoint |
Source | b2ContactPoint.as |
Property | Defined by | ||
---|---|---|---|
friction : Number The combined friction coefficient
| b2ContactPoint | ||
id : b2ContactID
The contact id identifies the features in contact
| b2ContactPoint | ||
normal : b2Vec2
Points from shape1 to shape2
| b2ContactPoint | ||
position : b2Vec2
Position in world coordinates
| b2ContactPoint | ||
restitution : Number The combined restitution coefficient
| b2ContactPoint | ||
separation : Number The separation is negative when shapes are touching
| b2ContactPoint | ||
shape1 : b2Shape
The first shape
| b2ContactPoint | ||
shape2 : b2Shape
The second shape
| b2ContactPoint | ||
velocity : b2Vec2
Velocity of point on body2 relative to point on body1 (pre-solver)
| b2ContactPoint |
friction | property |
public var friction:Number
The combined friction coefficient
id | property |
public var id:b2ContactID
The contact id identifies the features in contact
normal | property |
public var normal:b2Vec2
Points from shape1 to shape2
position | property |
public var position:b2Vec2
Position in world coordinates
restitution | property |
public var restitution:Number
The combined restitution coefficient
separation | property |
public var separation:Number
The separation is negative when shapes are touching
shape1 | property |
public var shape1:b2Shape
The first shape
shape2 | property |
public var shape2:b2Shape
The second shape
velocity | property |
public var velocity:b2Vec2
Velocity of point on body2 relative to point on body1 (pre-solver)