affectByGravity

affectByGravity affects a skeleton by a specified gravity struct. Send any integer to the thread containing the function to terminate it.

version(!DLL)
pragma(inline, true)
void
affectByGravity
(
shared Skeleton[] towatch
,
ref shared Skeleton skele
,
in uint tbf
,)

Parameters

towatch Skeleton[]

A shared array of skeletons that is used for collision checking.

skele Skeleton

A shared skeleton that is affected by gravity itself.

tbf uint

The wait time between frames in miliseconds, operations not included. Set to at least 1, as the function spends 1 milisecond waiting for messages.

gravity Gravity

A gravity struct that gives the axis and strength specifications.

Return Value

Type: void

none.

Meta