实现了走/跑/跳, extends KinematicBody class_name Player const walk_speed = 5.0 const run_speed = 10.0 var gravity:Vector3 = Vector3.DOWN*12 var speed:float = walk_speed var jump_speed:float = 6.0 var velocity : Vector3 = Vector3.ZERO var jump : bool = false func _ready(): add_to_group(player) func _ph