PackageBox2D.Collision
Classpublic class b2ContactPoint

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)