ContactInfo Class |
Namespace: Demo3D.Visuals
public class ContactInfo
The ContactInfo type exposes the following members.
| Name | Description | |
|---|---|---|
| Body1 |
The first physics body involved in the contact.
| |
| Body2 |
The second physics body involved in the contact.
| |
| FrictionDirection |
The direction in which to apply the contact speed and coefficient of friction.
| |
| Geometry1 |
The first collision geometry involved in the contact.
| |
| Geometry2 |
The second collision geometry involved in the contact.
| |
| Mu |
The coefficient of friction to use for the contact pair at the point of contact in the
direction of the contact. This will be a combination of the friction materials for both
surfaces.
| |
| Mu2 |
The coefficient of friction to use for the contact pair at the point of contact
orthogonal to the direction of the contact. This will be a combination of the friction
materials for both surfaces.
| |
| Normal |
The surface normal on the first visual.
Set this to be the normal of the surface at the point of contact.
| |
| PenetrationDepth |
How far into the object the contact has been generated.
| |
| Position |
The position of the contact.
| |
| Render |
Whether to render the contact point when debug rendering physics.
| |
| Result |
Set the desired result of the process contact.
| |
| Softness |
The Constraint Force Mixing (CFM) parameter value.
| |
| Speed |
The speed in meters/second that the surface at the point of contact is moving at in the
direction of the contact. This is the key to modeling conveyor type movement surfaces.
| |
| Speed2 |
The speed in meters/second that the surface at the point of contact is moving at
orthogonal to the direction of the contact.
| |
| Visual1 |
The first visual involved in the contact.
| |
| Visual2 |
The second visual involved in the contact.
|
| Name | Description | |
|---|---|---|
| ConfigureFrictionDirection |
Setup the first friction direction.
|