NewtonCreate

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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