| ContactIsRayHit Property |
Gets a value indicating whether this contact is a hit by a ray.
Namespace: DigitalRune.Geometry.CollisionsAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public bool IsRayHit { get; set; }
Public Property IsRayHit As Boolean
Get
Set
public:
property bool IsRayHit {
bool get ();
void set (bool value);
}
member IsRayHit : bool with get, set
Property Value
Type:
Boolean if this contact is a hit by a ray; otherwise,
.
Remarks
Normally, the contact points can lie within an object for a penetrating contacts. But ray
casts (ray vs. any other shape) will always create a contact point on the surface of the
shape which is hit. If IsRayHit is then
Position, PositionAWorld and PositionBWorld are
always identical. The PenetrationDepth is the distance from origin of the ray
to the contact point.
See Also