C# Class Box2DX.Dynamics.ContactPoint

Show file Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Public Properties

Property Type Description
Friction float
ID Box2DX.Collision.ContactID
Normal Box2DX.Common.Vec2
Position Box2DX.Common.Vec2
Restitution float
Separation float
Shape1 Box2DX.Collision.Shape
Shape2 Box2DX.Collision.Shape
Velocity Box2DX.Common.Vec2

Property Details

Friction public property

The combined friction coefficient.
public float Friction
return float

ID public property

The contact id identifies the features in contact.
public ContactID,Box2DX.Collision ID
return Box2DX.Collision.ContactID

Normal public property

Points from shape1 to shape2.
public Vec2,Box2DX.Common Normal
return Box2DX.Common.Vec2

Position public property

Position in world coordinates.
public Vec2,Box2DX.Common Position
return Box2DX.Common.Vec2

Restitution public property

The combined restitution coefficient.
public float Restitution
return float

Separation public property

The separation is negative when shapes are touching.
public float Separation
return float

Shape1 public property

The first shape.
public Shape,Box2DX.Collision Shape1
return Box2DX.Collision.Shape

Shape2 public property

The second shape.
public Shape,Box2DX.Collision Shape2
return Box2DX.Collision.Shape

Velocity public property

Velocity of point on body2 relative to point on body1 (pre-solver).
public Vec2,Box2DX.Common Velocity
return Box2DX.Common.Vec2