summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorfabriceci <fabricecipolla@gmail.com>2021-09-28 16:11:17 +0200
committerfabriceci <fabricecipolla@gmail.com>2021-09-28 16:11:17 +0200
commit32bf7c419c12771e2c2169800718083f3b16d4ea (patch)
tree94346372875e6b74d33e63891d553f8264687a48 /scene
parent5aa099aaed359df6ff79fe31616b5601db2a42c5 (diff)
downloadredot-engine-32bf7c419c12771e2c2169800718083f3b16d4ea.tar.gz
Sync to physics true by default for AnimatableBody
Diffstat (limited to 'scene')
-rw-r--r--scene/2d/physics_body_2d.h2
-rw-r--r--scene/3d/physics_body_3d.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/physics_body_2d.h b/scene/2d/physics_body_2d.h
index 3836fc4b62..ac1a1357f1 100644
--- a/scene/2d/physics_body_2d.h
+++ b/scene/2d/physics_body_2d.h
@@ -92,7 +92,7 @@ class AnimatableBody2D : public StaticBody2D {
GDCLASS(AnimatableBody2D, StaticBody2D);
private:
- bool sync_to_physics = false;
+ bool sync_to_physics = true;
Transform2D last_valid_transform;
diff --git a/scene/3d/physics_body_3d.h b/scene/3d/physics_body_3d.h
index 96f3d7d747..942fcc44c5 100644
--- a/scene/3d/physics_body_3d.h
+++ b/scene/3d/physics_body_3d.h
@@ -105,7 +105,7 @@ private:
Vector3 linear_velocity;
Vector3 angular_velocity;
- bool sync_to_physics = false;
+ bool sync_to_physics = true;
Transform3D last_valid_transform;