Gets or sets a value indicating whether Continuous Collision Detection (CCD) is enabled.

Namespace: DigitalRune.Physics
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.5.0.0 (1.5.0.9503)

Syntax

C#
public bool CcdEnabled { get; set; }
Visual Basic
Public Property CcdEnabled As Boolean
	Get
	Set
Visual C++
public:
property bool CcdEnabled {
	bool get ();
	void set (bool value);
}

Field Value

trueTruetruetrue (True in Visual Basic) if CCD is enabled; otherwise, falseFalsefalsefalse (False in Visual Basic). The default is falseFalsefalsefalse (False in Visual Basic).

Remarks

See also MotionSettings. CCD can be used for small fast moving objects to detect all collisions, e.g. for bullets. The simulation will only perform CCD for pairs of rigid bodies where CcdEnabled is set for one of the bodies. If CCD is not enabled for this body, it can happen that this body moves through other bodies and the collision is not detected - this problem only occurs for small/thin objects and fast moving objects.

See Also