Gets or sets a value indicating whether collision response is enabled.
Namespace: DigitalRune.PhysicsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.5.0.0 (1.5.0.9503)
Syntax
| C# |
|---|
public bool CollisionResponseEnabled { get; set; } |
| Visual Basic |
|---|
Public Property CollisionResponseEnabled As Boolean Get Set |
| Visual C++ |
|---|
public: property bool CollisionResponseEnabled { bool get (); void set (bool value); } |
Field Value
trueTruetruetrue (True in Visual Basic) if the collision response is enabled; otherwise, falseFalsefalsefalse (False in Visual Basic). The default value is trueTruetruetrue (True in Visual Basic).
Remarks
If collision response is disabled, no ContactConstraints are created for this
rigid body, and the simulation will not stop the body from moving through other rigid
bodies. Disabling collision response only make sense if there is no Gravity in
the simulated world or if the body is held in place by constraints or other forces. Without
constraints or forces the body will just fall through the floor and nothing will stop it.