C# Class BEPUphysics.CollisionTests.Contact

Handles information about a contact point during a collision between two bodies.
Show file Open project: Indiefreaks/igf Class Usage Examples

Public Properties

Property Type Description
Id int
Normal Vector3
PenetrationDepth float
Position Vector3

Public Methods

Method Description
Setup ( ContactData &candidate ) : void

Sets upt he contact with new information.

ToString ( ) : string

Outputs the position, normal, and depth information of the contact into a string.

Method Details

Setup() public method

Sets upt he contact with new information.
public Setup ( ContactData &candidate ) : void
candidate ContactData Contact data to initialize the contact with.
return void

ToString() public method

Outputs the position, normal, and depth information of the contact into a string.
public ToString ( ) : string
return string

Property Details

Id public property

Identifier used to link contact data with existing contacts and categorize members of a manifold.
public int Id
return int

Normal public property

Normal direction of the surface at the contact point.
public Vector3 Normal
return Vector3

PenetrationDepth public property

Amount of penetration between the two objects.
public float PenetrationDepth
return float

Position public property

Position of the contact point.
public Vector3 Position
return Vector3