Skip to content

Commit 9db5266

Browse files
authored
Change physics joint tests to freeze bodies as kinematic in the Physics tests demos (#1177)
1 parent 7befd7c commit 9db5266

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

2d/physics_tests/tests/functional/test_joints.gd

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ func _create_joint() -> void:
113113
parent_body.gravity_scale = 0.0
114114
child_body.gravity_scale = 0.0
115115
else:
116+
parent_body.freeze_mode = RigidBody2D.FREEZE_MODE_KINEMATIC
116117
parent_body.freeze = true
117118
if _change_positions:
118119
root.add_child(parent_body)

3d/physics_tests/tests/functional/test_joints.gd

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ func _create_joint() -> void:
113113
parent_body.gravity_scale = 0.0
114114
child_body.gravity_scale = 0.0
115115
else:
116+
parent_body.freeze_mode = RigidBody3D.FREEZE_MODE_KINEMATIC
116117
parent_body.freeze = true
117118
if _change_positions:
118119
root.add_child(parent_body)

0 commit comments

Comments
 (0)