Make Player a KinematicBody

This commit is contained in:
Fabien Freling 2018-07-19 15:36:56 +02:00
parent d6afcd4f70
commit 206bf0ae44
2 changed files with 38 additions and 14 deletions

View file

@ -1,15 +1,18 @@
extends Spatial
extends KinematicBody
# class member variables go here, for example:
# var a = 2
# var b = "textvar"
var velocity = Vector3()
func _ready():
# Called every time the node is added to the scene.
# Initialization here
pass
func _physics_process(delta):
var direction = Vector3()
# if Input.is_action_pressed("movement_forward"):
#func _process(delta):
# # Called every frame. Delta is time since last frame.
# # Update game logic here.
# pass
# pass