Change to Basic 3d Version

This commit is contained in:
2023-06-04 18:23:34 -04:00
parent 2bdba756b8
commit d881d14010
6 changed files with 50 additions and 12 deletions

View File

@@ -6,15 +6,11 @@ var heldFrisbee :CharacterBody2D= null
var remote_player :bool= false
var max_walk :float= 10
var accel_walk :float= 100
var max_run :float= 20
var accel_run :float= 2 * accel_walk
var friction_tonic :float= 1e-1
var move_dir :Vector2= Vector2.ZERO
var move_force :float= 500
var max_speed :float= 500
var move_friction :float= 1000
var tonic_friction :float= 100
# Called when the node enters the scene tree for the first time.
func _ready():
@@ -24,7 +20,8 @@ func set_move_direction(dir):
move_dir = dir
func move_player(delta):
move_and_collide(move_dir * max_walk)
velocity = max_speed * move_dir
move_and_slide()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):