| CollisionDomainUpdate Method (Single, Boolean) |
Updates the collision domain and computes the new contact information.
Namespace: DigitalRune.Geometry.CollisionsAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public void Update(
float deltaTime,
bool recycleContactSets
)
Public Sub Update (
deltaTime As Single,
recycleContactSets As Boolean
)
public:
void Update(
float deltaTime,
bool recycleContactSets
)
member Update :
deltaTime : float32 *
recycleContactSets : bool -> unit
Parameters
- deltaTime
- Type: SystemSingle
The simulation time that has elapsed since the last update in seconds. (The size of the time
step.) - recycleContactSets
- Type: SystemBoolean
If set to , obsolete contact sets from the last frames will be
recycled - which is the default behavior. If, for some reason, obsolete contact sets might
still be referenced and used, use ; the contact sets are kept
and recycled in future Update(TimeSpan) calls.
should only be used in special cases.
Remarks
This method has to be called in each frame. The computed collision data will be updated for
the collision objects which were modified since the last
Update(Single) call.
See Also