The Contact type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Create |
Creates an instance of the Contact class. (This method
reuses a previously recycled instance or allocates a new instance if necessary.)
| |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | (Overrides Object..::..ToString()()()().) |
Properties
| Name | Description | |
|---|---|---|
| FeatureA |
Gets or sets the index of the shape feature of object A that was hit.
| |
| FeatureB |
Gets or sets the index of the shape feature of object B that was hit.
| |
| IsRayHit |
Gets a value indicating whether this contact is a hit by a ray.
| |
| Lifetime |
Gets or sets the lifetime of this contact (in seconds).
| |
| Normal |
Gets or sets the normalized contact normal (pointing from object A to object B; in world space).
| |
| PenetrationDepth |
Gets or sets the penetration depth.
| |
| Position |
Gets or sets the contact position (in world space).
| |
| PositionALocal |
Gets or sets the contact position on object A in the local space of object A.
| |
| PositionAWorld |
Gets the contact position on object A (in world space).
| |
| PositionBLocal |
Gets or sets the contact position on object B in the local space of object B.
| |
| PositionBWorld |
Gets the contact position on object B (in world space).
| |
| Swapped |
Gets a copy of the contact where the collision objects are swapped.
| |
| UserData |
Gets or sets the user data.
|