NewtonWaitForUpdateToFinish

From Newton Wiki
Jump to: navigation, search

NewtonWaitForUpdateToFinish

void NewtonWaitForUpdateToFinish (const NewtonWorld* const newtonWorld)

Usage

NewtonWaitForUpdateToFinish will wait until the current NewtonUpdateAsync update is completed and then return back to the application. This is of use when you want destroy a world or destroy any body or joint in the world. If you are using NewtonUpdate (Single threaded), then NewtonWaitForUpdateToFinish has no effect,

When using NewtonUpdateAsync it is important to use NewtonWaitForUpdateToFinish before destroying a world or its bodies.

Parameters

  • const NewtonWorld* const newtonWorld

Return

  • (Procedure)

Description

See also