PhysicsWorld The created world.
Create a PhysicsWorld using the PhysicsWorldDefinition.defaultDefinition.
| Parameter | Description |
|---|---|
| definition | The world definition to use. |
PhysicsWorld The created world.
Create a PhysicsWorld.
| Parameter | Description |
|---|---|
| snapshot | A snapshot produced by PhysicsWorld.CreateSnapshot. |
| definition | The world definition supplying the settings the snapshot does not store. |
PhysicsWorld The created world, restored to the snapshot state.
Creates a new PhysicsWorld from , using for the settings a snapshot does not store.
A snapshot restores the full simulation configuration, so these PhysicsWorldDefinition properties are taken from and their values in are ignored: PhysicsWorldDefinition.gravity, PhysicsWorldDefinition.bounceThreshold, PhysicsWorldDefinition.contactHitEventThreshold, PhysicsWorldDefinition.contactFrequency, PhysicsWorldDefinition.contactDamping, PhysicsWorldDefinition.contactSpeed, PhysicsWorldDefinition.contactRecycleDistance, PhysicsWorldDefinition.maximumLinearSpeed, PhysicsWorldDefinition.sleepingAllowed, PhysicsWorldDefinition.continuousAllowed and PhysicsWorldDefinition.capacity. All other properties are applied normally, for example PhysicsWorldDefinition.simulationWorkers and PhysicsWorldDefinition.simulationSubSteps. To use a value other than the snapshot's, set the matching property on the returned world after this call.