Difference between revisions of "NewtonCreate"

From Newton Wiki
Jump to: navigation, search
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:02, 10 June 2019

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.

Example

NewtonWorld* nWorld = NewtonCreate( );

See also

NewtonDestroyNewtonDestroyAllBodies Newton SDK API reference