Implemented jumps
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
class_name Character
|
||||
extends CharacterBody3D
|
||||
|
||||
signal jumped
|
||||
|
||||
@export var model: Node3D
|
||||
@export var move_speed: float = 4.5
|
||||
@export var rotation_speed: float = 20.0
|
||||
@ -37,6 +39,7 @@ func jump():
|
||||
return
|
||||
|
||||
velocity.y = JUMP_VELOCITY
|
||||
jumped.emit()
|
||||
|
||||
func dash():
|
||||
print("dash")
|
||||
|
Reference in New Issue
Block a user