The Contact type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCreate
Creates an instance of the Contact class. (This method reuses a previously recycled instance or allocates a new instance if necessary.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Overrides Object..::..ToString()()()().)

Properties

  NameDescription
Public propertyFeatureA
Gets or sets the index of the shape feature of object A that was hit.
Public propertyFeatureB
Gets or sets the index of the shape feature of object B that was hit.
Public propertyIsRayHit
Gets a value indicating whether this contact is a hit by a ray.
Public propertyLifetime
Gets or sets the lifetime of this contact (in seconds).
Public propertyNormal
Gets or sets the normalized contact normal (pointing from object A to object B; in world space).
Public propertyPenetrationDepth
Gets or sets the penetration depth.
Public propertyPosition
Gets or sets the contact position (in world space).
Public propertyPositionALocal
Gets or sets the contact position on object A in the local space of object A.
Public propertyPositionAWorld
Gets the contact position on object A (in world space).
Public propertyPositionBLocal
Gets or sets the contact position on object B in the local space of object B.
Public propertyPositionBWorld
Gets the contact position on object B (in world space).
Public propertySwapped
Gets a copy of the contact where the collision objects are swapped.
Public propertyUserData
Gets or sets the user data.

See Also