diff --git a/3rdparty/quickjs b/3rdparty/quickjs new file mode 160000 index 00000000000..f7830186043 --- /dev/null +++ b/3rdparty/quickjs @@ -0,0 +1 @@ +Subproject commit f7830186043e4488f2998759d60a514faf07cbc9 diff --git a/axmol/scene/Scene.h b/axmol/scene/Scene.h index af33cc1ac3e..2242ae385d5 100644 --- a/axmol/scene/Scene.h +++ b/axmol/scene/Scene.h @@ -172,6 +172,8 @@ class AX_DLL Scene : public Node // query interpolation alpha for rendering float getPhysicsInterpolationAlpha() const { return _physicsInterpolationAlpha; } + void tick(float delta); + virtual void fixedUpdate(float delta); private: void initDefaultCamera(); @@ -241,9 +243,6 @@ class AX_DLL Scene : public Node bool initWithPhysics(); bool initPhysicsWorld(); - void tick(float delta); - virtual void fixedUpdate(float delta); - protected: # if defined(AX_ENABLE_PHYSICS_2D) PhysicsWorld2D* _physicsWorld2D = nullptr;