10 lines
154 B
GDScript
10 lines
154 B
GDScript
extends CharacterBody3D
|
|
|
|
|
|
func _physics_process(delta):
|
|
# Add the gravity.
|
|
if not is_on_floor():
|
|
velocity += get_gravity() * delta
|
|
|
|
move_and_slide()
|