Make Player a KinematicBody
This commit is contained in:
parent
d6afcd4f70
commit
206bf0ae44
2 changed files with 38 additions and 14 deletions
13
Player.gd
13
Player.gd
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue