Private Member Functions | |
| private void | PhysicsWorld () |
| private void | ~PhysicsWorld () |
| private void | PhysicsWorld () |
| private void | ~PhysicsWorld () |
Static Private Member Functions | |
| static proto void | SetInteractionLayer (notnull IEntity worldEntity, int mask1, int mask2, bool enable) |
| static proto vector | GetGravity (notnull IEntity worldEntity) |
| static proto void | SetGravity (notnull IEntity worldEntity, vector g) |
| static proto float | GetTimeSlice (notnull IEntity worldEntity) |
| static proto int | GetUpdateRate (notnull IEntity worldEntity) |
| static proto void | SetUpdateRate (notnull IEntity worldEntity, int updateRate) |
| static proto int | GetNumDynamicBodies (notnull IEntity worldEntity) |
| static proto IEntity | GetDynamicBody (notnull IEntity worldEntity, int index) |
| static proto void | SetInteractionLayer (notnull IEntity worldEntity, int mask1, int mask2, bool enable) |
| static proto vector | GetGravity (notnull IEntity worldEntity) |
| static proto void | SetGravity (notnull IEntity worldEntity, vector g) |
| static proto float | GetTimeSlice (notnull IEntity worldEntity) |
| static proto int | GetUpdateRate (notnull IEntity worldEntity) |
| static proto void | SetUpdateRate (notnull IEntity worldEntity, int updateRate) |
| static proto int | GetNumDynamicBodies (notnull IEntity worldEntity) |
| static proto IEntity | GetDynamicBody (notnull IEntity worldEntity, int index) |
Physical simulation of the world
|
private |
|
private |
|
private |
|
private |
Returns entity of a specified dynamic body
| worldEntity | Entity used to obtain world in which entities exist |
| index | Index of a dynamic body. Must be within bounds (GetNumDynamicBodies) |
Returns entity of a specified dynamic body
| worldEntity | Entity used to obtain world in which entities exist |
| index | Index of a dynamic body. Must be within bounds (GetNumDynamicBodies) |
Returns global gravity
| worldEntity | Entity used to obtain world in which entities exist |
Returns global gravity
| worldEntity | Entity used to obtain world in which entities exist |
Returns number of dynamic bodies
| worldEntity | Entity used to obtain world in which entities exist |
Returns number of dynamic bodies
| worldEntity | Entity used to obtain world in which entities exist |
Returns current fixed time step of the physics simulation
| worldEntity | Entity used to obtain world in which entities exist |
Returns current fixed time step of the physics simulation
| worldEntity | Entity used to obtain world in which entities exist |
Returns current update rate of the physics simulation
| worldEntity | Entity used to obtain world in which entities exist |
Returns current update rate of the physics simulation
| worldEntity | Entity used to obtain world in which entities exist |
Changes global gravity.
| worldEntity | Entity used to obtain world in which entities exist |
| g | Global gravity vector |
Changes global gravity.
| worldEntity | Entity used to obtain world in which entities exist |
| g | Global gravity vector |
|
staticprivate |
Modifies interaction matrix of interaction layers
| worldEntity | Entity used to obtain world in which entities exist |
| mask1 | Bit mask of layers |
| mask2 | Other bit mask of layers |
| enable | True to enable, false to disable interaction |
|
staticprivate |
Modifies interaction matrix of interaction layers
| worldEntity | Entity used to obtain world in which entities exist |
| mask1 | Bit mask of layers |
| mask2 | Other bit mask of layers |
| enable | True to enable, false to disable interaction |
Sets update rate to change fixed time step of the physics simulation
| worldEntity | Entity used to obtain world in which entities exist |
| updateRate | Update rate of the physics simulation. Between 20 and 1000 |
Sets update rate to change fixed time step of the physics simulation
| worldEntity | Entity used to obtain world in which entities exist |
| updateRate | Update rate of the physics simulation. Between 20 and 1000 |