C# Class Box2DX.Dynamics.ContactPoint

ファイルを表示 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_oe property

The combined friction coefficient.
public float Friction
return float

ID public_oe property

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

Normal public_oe property

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

Position public_oe property

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

Restitution public_oe property

The combined restitution coefficient.
public float Restitution
return float

Separation public_oe property

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

Shape1 public_oe property

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

Shape2 public_oe property

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

Velocity public_oe property

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