Click or drag to resize

ContactInfo Class

Class for handling low level processing of physics contact points. An instance of this is passed to the OnProcessContact event of certain visuals.
Inheritance Hierarchy
SystemObject
  Demo3D.VisualsContactInfo

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 10.0.0.6737
Syntax
C#
public class ContactInfo

The ContactInfo type exposes the following members.

Properties
  NameDescription
Public propertyFrictionDirection
The direction in which to apply the contact speed and coefficient of friction.
Public propertyMu
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.
Public propertyMu2
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.
Public propertyNormal
The surface normal for the restitution from the contact. Set this to be the normal of the surface at the point of contact.
Public propertyPenetrationDepth
How far into the object the contact has been generated.
Public propertyPosition
The position of the contact.
Public propertyResult
Set the desired result of the process contact.
Public propertySpeed
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.
Public propertySpeed2
The speed in meters/second that the surface at the point of contact is moving at orthogonal to the direction of the contact.
Public propertyVisual1
The first visual involved in the contact.
Public propertyVisual2
The second visual involved in the contact.
Top
Methods
  NameDescription
Public methodConfigureFrictionDirection
Setup direction of friction
Top
See Also