forked from LeenkxTeam/LNXSDK
moisesjpelaez - Add fixedUpdate for Physics
This commit is contained in:
@ -7,7 +7,13 @@ class Time {
|
|||||||
if (frequency == null) initFrequency();
|
if (frequency == null) initFrequency();
|
||||||
return 1 / frequency;
|
return 1 / frequency;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: set physics step from Blender's editor
|
||||||
|
public static var fixedStep(get, never): Float;
|
||||||
|
static function get_fixedStep(): Float {
|
||||||
|
return 1 / 60;
|
||||||
|
}
|
||||||
|
|
||||||
public static var scale = 1.0;
|
public static var scale = 1.0;
|
||||||
public static var delta(get, never): Float;
|
public static var delta(get, never): Float;
|
||||||
static function get_delta(): Float {
|
static function get_delta(): Float {
|
||||||
|
Reference in New Issue
Block a user