PackageBox2D.Collision
Classpublic class b2ContactPoint
Sourceb2ContactPoint.as

This structure is used to report contact points.



Public Properties
 PropertyDefined 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
Property detail
frictionproperty
public var friction:Number

The combined friction coefficient

idproperty 
public var id:b2ContactID

The contact id identifies the features in contact

normalproperty 
public var normal:b2Vec2

Points from shape1 to shape2

positionproperty 
public var position:b2Vec2

Position in world coordinates

restitutionproperty 
public var restitution:Number

The combined restitution coefficient

separationproperty 
public var separation:Number

The separation is negative when shapes are touching

shape1property 
public var shape1:b2Shape

The first shape

shape2property 
public var shape2:b2Shape

The second shape

velocityproperty 
public var velocity:b2Vec2

Velocity of point on body2 relative to point on body1 (pre-solver)