Physical simulation of the world.
More...
|
| static proto IEntity | GetDynamicBody (notnull IEntity worldEntity, int index) |
| | Returns entity of a specified dynamic body.
|
| static proto IEntity | GetDynamicBody (notnull IEntity worldEntity, int index) |
| | Returns entity of a specified dynamic body.
|
| static proto vector | GetGravity (notnull IEntity worldEntity) |
| | Returns global gravity.
|
| static proto vector | GetGravity (notnull IEntity worldEntity) |
| | Returns global gravity.
|
| static proto int | GetNumDynamicBodies (notnull IEntity worldEntity) |
| | Returns number of dynamic bodies.
|
| static proto int | GetNumDynamicBodies (notnull IEntity worldEntity) |
| | Returns number of dynamic bodies.
|
| static proto float | GetTimeSlice (notnull IEntity worldEntity) |
| | Returns current fixed time step of the physics simulation.
|
| static proto float | GetTimeSlice (notnull IEntity worldEntity) |
| | Returns current fixed time step of the physics simulation.
|
| static proto int | GetUpdateRate (notnull IEntity worldEntity) |
| | Returns current update rate of the physics simulation.
|
| static proto int | GetUpdateRate (notnull IEntity worldEntity) |
| | Returns current update rate of the physics simulation.
|
| static proto void | SetGravity (notnull IEntity worldEntity, vector g) |
| | Changes global gravity.
|
| static proto void | SetGravity (notnull IEntity worldEntity, vector g) |
| | Changes global gravity.
|
| static proto void | SetInteractionLayer (notnull IEntity worldEntity, int mask1, int mask2, bool enable) |
| | Modifies interaction matrix of interaction layers.
|
| static proto void | SetInteractionLayer (notnull IEntity worldEntity, int mask1, int mask2, bool enable) |
| | Modifies interaction matrix of interaction layers.
|
| static proto void | SetUpdateRate (notnull IEntity worldEntity, int updateRate) |
| | Sets update rate to change fixed time step of the physics simulation.
|
| static proto void | SetUpdateRate (notnull IEntity worldEntity, int updateRate) |
| | Sets update rate to change fixed time step of the physics simulation.
|
Physical simulation of the world.
Definition at line 9 of file physicsworld.c.
◆ PhysicsWorld() [1/2]
◆ ~PhysicsWorld() [1/2]
◆ PhysicsWorld() [2/2]
◆ ~PhysicsWorld() [2/2]
◆ GetDynamicBody() [1/2]
Returns entity of a specified dynamic body.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
| index | Index of a dynamic body. Must be within bounds (GetNumDynamicBodies) |
◆ GetDynamicBody() [2/2]
Returns entity of a specified dynamic body.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
| index | Index of a dynamic body. Must be within bounds (GetNumDynamicBodies) |
◆ GetGravity() [1/2]
Returns global gravity.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
◆ GetGravity() [2/2]
Returns global gravity.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
◆ GetNumDynamicBodies() [1/2]
| proto int GetNumDynamicBodies |
( |
notnull IEntity | worldEntity | ) |
|
|
staticprivate |
Returns number of dynamic bodies.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
◆ GetNumDynamicBodies() [2/2]
| proto int GetNumDynamicBodies |
( |
notnull IEntity | worldEntity | ) |
|
|
staticprivate |
Returns number of dynamic bodies.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
◆ GetTimeSlice() [1/2]
Returns current fixed time step of the physics simulation.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
◆ GetTimeSlice() [2/2]
Returns current fixed time step of the physics simulation.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
◆ GetUpdateRate() [1/2]
| proto int GetUpdateRate |
( |
notnull IEntity | worldEntity | ) |
|
|
staticprivate |
Returns current update rate of the physics simulation.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
◆ GetUpdateRate() [2/2]
| proto int GetUpdateRate |
( |
notnull IEntity | worldEntity | ) |
|
|
staticprivate |
Returns current update rate of the physics simulation.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
◆ SetGravity() [1/2]
Changes global gravity.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
| g | Global gravity vector |
◆ SetGravity() [2/2]
Changes global gravity.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
| g | Global gravity vector |
◆ SetInteractionLayer() [1/2]
| proto void SetInteractionLayer |
( |
notnull IEntity | worldEntity, |
|
|
int | mask1, |
|
|
int | mask2, |
|
|
bool | enable ) |
|
staticprivate |
Modifies interaction matrix of interaction layers.
- Parameters
-
| 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 |
◆ SetInteractionLayer() [2/2]
| proto void SetInteractionLayer |
( |
notnull IEntity | worldEntity, |
|
|
int | mask1, |
|
|
int | mask2, |
|
|
bool | enable ) |
|
staticprivate |
Modifies interaction matrix of interaction layers.
- Parameters
-
| 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 |
◆ SetUpdateRate() [1/2]
| proto void SetUpdateRate |
( |
notnull IEntity | worldEntity, |
|
|
int | updateRate ) |
|
staticprivate |
Sets update rate to change fixed time step of the physics simulation.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
| updateRate | Update rate of the physics simulation. Between 20 and 1000 |
◆ SetUpdateRate() [2/2]
| proto void SetUpdateRate |
( |
notnull IEntity | worldEntity, |
|
|
int | updateRate ) |
|
staticprivate |
Sets update rate to change fixed time step of the physics simulation.
- Parameters
-
| worldEntity | Entity used to obtain world in which entities exist |
| updateRate | Update rate of the physics simulation. Between 20 and 1000 |
The documentation for this class was generated from the following file: