Fix bug with gravity being lost after menu

This commit is contained in:
karl committed 2020-02-01 22:44:22 +01:00
1 parent 1858ca6288
commit 14b60c1e02
3 files changed
+11 -7

No files matched your search

+6 -1
View File
@@ -52,11 +52,16 @@ func _switch_to_win(player_id):
func _switch_to_fighting(torso):
_body_build_scene.remove_child(torso)
torso.global_transform.origin = Vector3.ZERO
torso.translation += Vector3(0, 3, 0)
torso.rotation = Vector3(0, 0, 0)
torso.rotation = Vector3.ZERO
_switch_scene(_fighting_scene, "fight_scene")
_fighting_scene.add_child(torso)
torso.axis_lock_linear_x = false
torso.axis_lock_linear_y = false
torso.axis_lock_linear_z = false
func _switch_to_body_build():