sheepa
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
extends CharacterBody3D
|
||||
|
||||
const SPEED = 5.0
|
||||
const JUMP_VELOCITY = 4.5
|
||||
const SPEED = 3.0
|
||||
const JUMP_VELOCITY = 2.5
|
||||
|
||||
func _physics_process(delta):
|
||||
# Add the gravity.
|
||||
|
||||
8
scripts/sheep.gd
Normal file
8
scripts/sheep.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
extends CharacterBody3D
|
||||
|
||||
func _physics_process(delta):
|
||||
# Add the gravity.
|
||||
if not is_on_floor():
|
||||
velocity += get_gravity() * delta
|
||||
|
||||
move_and_slide()
|
||||
1
scripts/sheep.gd.uid
Normal file
1
scripts/sheep.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bt82qpykbut2u
|
||||
Reference in New Issue
Block a user