NewtonCreate
NewtonCreate
NewtonWorld* NewtonCreate ()
Usage
Create an instance of the Newton world.
Parameters
- None
Return
- NewtonWorld* returns a reference to newton world created.
Remarks
- This function must be called before any of the other API functions.
Description
This is the command that creates a Newton world, which holds all of your Rigid Bodies, Collision data, etc. although you can theoretically have more than 1 World in an application, most situations only require a single world.
- Note Memory manager parameters have been moved to NewtonSetMemorySystem function.
Example
NewtonWorld* nWorld = NewtonCreate( );
See also
NewtonDestroyNewtonDestroyAllBodies Newton SDK API reference