update player rotation and adding move

This commit is contained in:
AleaJactaEst 2021-09-04 16:07:16 +02:00
parent bfe71ec37c
commit f619971496
2 changed files with 4 additions and 1 deletions

View file

@ -9,6 +9,10 @@ var move_speed = 2.5
var run_speed = 5.0 var run_speed = 5.0
var max_speed = 12.0 var max_speed = 12.0
export var gravity = -9.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. # Called when the node enters the scene tree for the first time.

View file

@ -114,7 +114,6 @@ func _process( delta ):
Config.msg_info("pos X:" + str(pos.x) + " Y:" + str(pos.y) + " Z:" + str(pos.z)) Config.msg_info("pos X:" + str(pos.x) + " Y:" + str(pos.y) + " Z:" + str(pos.z))
func calculate_velocity( func calculate_velocity(
velocity_current: Vector3, velocity_current: Vector3,
move_direction: Vector3, move_direction: Vector3,