Fix torso start positions and rotations
This commit is contained in:
parent
3ce7e63135
commit
28f004b382
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user