From be21bc7abd84052e1d2df6177b646e9681661596 Mon Sep 17 00:00:00 2001 From: antn9x Date: Wed, 27 May 2026 22:13:41 +0700 Subject: [PATCH] Fix disable physics bug --- 3rdparty/quickjs | 1 + axmol/scene/Scene.h | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 160000 3rdparty/quickjs 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;