From f619971496eb6728f0c320666080ade4edfd2aeb Mon Sep 17 00:00:00 2001 From: AleaJactaEst Date: Sat, 4 Sep 2021 16:07:16 +0200 Subject: [PATCH] update player rotation and adding move --- scenes/player/creature_raference.gd | 4 ++++ scenes/player/playerB.gd | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scenes/player/creature_raference.gd b/scenes/player/creature_raference.gd index 6db57b0..00a6080 100644 --- a/scenes/player/creature_raference.gd +++ b/scenes/player/creature_raference.gd @@ -9,6 +9,10 @@ var move_speed = 2.5 var run_speed = 5.0 var max_speed = 12.0 export var gravity = -9.0 +var animation_walk = "_bip01_ca_female_march" +var animation_run = "_bip01_ca_female_run" +var animation_scan_loop = "_bip01_ca_female_scanne_loop" +var animation_teleport_loop = "_bip01_ca_female_teleporte_loop" # Called when the node enters the scene tree for the first time. diff --git a/scenes/player/playerB.gd b/scenes/player/playerB.gd index 66d1a4d..1c1684c 100644 --- a/scenes/player/playerB.gd +++ b/scenes/player/playerB.gd @@ -114,7 +114,6 @@ func _process( delta ): Config.msg_info("pos X:" + str(pos.x) + " Y:" + str(pos.y) + " Z:" + str(pos.z)) - func calculate_velocity( velocity_current: Vector3, move_direction: Vector3,