Physical simulation of the world.
More...
Physical simulation of the world.
◆ GetDynamicBody()
static proto IEntity PhysicsWorld.GetDynamicBody |
( |
notnull IEntity |
worldEntity, |
|
|
int |
index |
|
) |
| |
|
static |
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()
static proto vector PhysicsWorld.GetGravity |
( |
notnull IEntity |
worldEntity | ) |
|
|
static |
Returns global gravity.
- Parameters
-
worldEntity | Entity used to obtain world in which entities exist |
◆ GetNumDynamicBodies()
static proto int PhysicsWorld.GetNumDynamicBodies |
( |
notnull IEntity |
worldEntity | ) |
|
|
static |
Returns number of dynamic bodies.
- Parameters
-
worldEntity | Entity used to obtain world in which entities exist |
◆ GetTimeSlice()
static proto float PhysicsWorld.GetTimeSlice |
( |
notnull IEntity |
worldEntity | ) |
|
|
static |
Returns current fixed time step of the physics simulation.
- Parameters
-
worldEntity | Entity used to obtain world in which entities exist |
◆ GetUpdateRate()
static proto int PhysicsWorld.GetUpdateRate |
( |
notnull IEntity |
worldEntity | ) |
|
|
static |
Returns current update rate of the physics simulation.
- Parameters
-
worldEntity | Entity used to obtain world in which entities exist |
◆ SetGravity()
static proto void PhysicsWorld.SetGravity |
( |
notnull IEntity |
worldEntity, |
|
|
vector |
g |
|
) |
| |
|
static |
Changes global gravity.
- Parameters
-
worldEntity | Entity used to obtain world in which entities exist |
g | Global gravity vector |
◆ SetInteractionLayer()
static proto void PhysicsWorld.SetInteractionLayer |
( |
notnull IEntity |
worldEntity, |
|
|
int |
mask1, |
|
|
int |
mask2, |
|
|
bool |
enable |
|
) |
| |
|
static |
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()
static proto void PhysicsWorld.SetUpdateRate |
( |
notnull IEntity |
worldEntity, |
|
|
int |
updateRate |
|
) |
| |
|
static |
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 interface was generated from the following file:
- Core/generated/Physics/PhysicsWorld.c