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: 15.0.2.11458
Syntax
C#
public class ContactInfo

The ContactInfo type exposes the following members.

Properties
  NameDescription
Public propertyBody1
The first physics body involved in the contact.
Public propertyBody2
The second physics body involved in the contact.
Public propertyFrictionDirection
The direction in which to apply the contact speed and coefficient of friction.
Public propertyGeometry1
The first collision geometry involved in the contact.
Public propertyGeometry2
The second collision geometry involved in the contact.
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 on the first visual. 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 propertyRender
Whether to render the contact point when debug rendering physics.
Public propertyResult
Set the desired result of the process contact.
Public propertySoftness
The Constraint Force Mixing (CFM) parameter value.
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 the first friction direction.
Top
See Also