forked from LeenkxTeam/LNXSDK
moisesjpelaez - Add fixedUpdate for Physics
This commit is contained in:
parent
502601e684
commit
016e223fb8
@ -7,7 +7,13 @@ class Time {
|
||||
if (frequency == null) initFrequency();
|
||||
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 delta(get, never): Float;
|
||||
static function get_delta(): Float {
|
||||
|
Loading…
x
Reference in New Issue
Block a user