From 28f004b382b42c6d4685000ef86c1bfce0dae5c3 Mon Sep 17 00:00:00 2001 From: karl Date: Sun, 2 Feb 2020 10:51:17 +0100 Subject: [PATCH] Fix torso start positions and rotations --- Controllers/GameStateController.gd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Controllers/GameStateController.gd b/Controllers/GameStateController.gd index 4cd2cfe..e0b7687 100644 --- a/Controllers/GameStateController.gd +++ b/Controllers/GameStateController.gd @@ -9,7 +9,7 @@ var _fighting_scene var _win_screen_scene var _bodies : Array var _body_count = 0 -var _body_positions = [Vector3(0, 5, -30), Vector3(0, 5, 30), Vector3(-30, 5, 0), Vector3(30, 5, 0)] +var _body_positions = [Vector3(0, 15, -30), Vector3(0, 15, 30), Vector3(-30, 15, 0), Vector3(30, 15, 0)] func _ready(): InGameState.player_count = 2 @@ -61,7 +61,10 @@ func _switch_to_fighting(torso): torso.global_transform.origin = Vector3.ZERO torso.translation += _body_positions[_body_count] - torso.rotation = Vector3(90, 0, 0) + torso.rotation_degrees = Vector3(90, 0, 0) + + if _body_count == 1: + torso.rotation_degrees += Vector3(0, 180, 0) _body_count += 1 if _body_count < InGameState.player_count: