Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
PhysicsWorld Class Reference

Physical simulation of the world. More...

Private Member Functions

void PhysicsWorld ()
void PhysicsWorld ()
void ~PhysicsWorld ()
void ~PhysicsWorld ()

Static Private Member Functions

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.

Detailed Description

Physical simulation of the world.

Definition at line 9 of file physicsworld.c.

Constructor & Destructor Documentation

◆ PhysicsWorld() [1/2]

void PhysicsWorld ( )
private

◆ ~PhysicsWorld() [1/2]

void ~PhysicsWorld ( )
private

◆ PhysicsWorld() [2/2]

void PhysicsWorld ( )
private

◆ ~PhysicsWorld() [2/2]

void ~PhysicsWorld ( )
private

Member Function Documentation

◆ GetDynamicBody() [1/2]

proto IEntity GetDynamicBody ( notnull IEntity worldEntity,
int index )
staticprivate

Returns entity of a specified dynamic body.

Parameters
worldEntityEntity used to obtain world in which entities exist
indexIndex of a dynamic body. Must be within bounds (GetNumDynamicBodies)

◆ GetDynamicBody() [2/2]

proto IEntity GetDynamicBody ( notnull IEntity worldEntity,
int index )
staticprivate

Returns entity of a specified dynamic body.

Parameters
worldEntityEntity used to obtain world in which entities exist
indexIndex of a dynamic body. Must be within bounds (GetNumDynamicBodies)

◆ GetGravity() [1/2]

proto vector GetGravity ( notnull IEntity worldEntity)
staticprivate

Returns global gravity.

Parameters
worldEntityEntity used to obtain world in which entities exist

◆ GetGravity() [2/2]

proto vector GetGravity ( notnull IEntity worldEntity)
staticprivate

Returns global gravity.

Parameters
worldEntityEntity used to obtain world in which entities exist

◆ GetNumDynamicBodies() [1/2]

proto int GetNumDynamicBodies ( notnull IEntity worldEntity)
staticprivate

Returns number of dynamic bodies.

Parameters
worldEntityEntity used to obtain world in which entities exist

◆ GetNumDynamicBodies() [2/2]

proto int GetNumDynamicBodies ( notnull IEntity worldEntity)
staticprivate

Returns number of dynamic bodies.

Parameters
worldEntityEntity used to obtain world in which entities exist

◆ GetTimeSlice() [1/2]

proto float GetTimeSlice ( notnull IEntity worldEntity)
staticprivate

Returns current fixed time step of the physics simulation.

Parameters
worldEntityEntity used to obtain world in which entities exist

◆ GetTimeSlice() [2/2]

proto float GetTimeSlice ( notnull IEntity worldEntity)
staticprivate

Returns current fixed time step of the physics simulation.

Parameters
worldEntityEntity 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
worldEntityEntity 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
worldEntityEntity used to obtain world in which entities exist

◆ SetGravity() [1/2]

proto void SetGravity ( notnull IEntity worldEntity,
vector g )
staticprivate

Changes global gravity.

Parameters
worldEntityEntity used to obtain world in which entities exist
gGlobal gravity vector

◆ SetGravity() [2/2]

proto void SetGravity ( notnull IEntity worldEntity,
vector g )
staticprivate

Changes global gravity.

Parameters
worldEntityEntity used to obtain world in which entities exist
gGlobal 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
worldEntityEntity used to obtain world in which entities exist
mask1Bit mask of layers
mask2Other bit mask of layers
enableTrue 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
worldEntityEntity used to obtain world in which entities exist
mask1Bit mask of layers
mask2Other bit mask of layers
enableTrue 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
worldEntityEntity used to obtain world in which entities exist
updateRateUpdate 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
worldEntityEntity used to obtain world in which entities exist
updateRateUpdate rate of the physics simulation. Between 20 and 1000

The documentation for this class was generated from the following file: