update player rotation and adding move
This commit is contained in:
parent
bfe71ec37c
commit
f619971496
2 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue