Added stairs (can't climb yet).

This commit is contained in:
Segey Lapin
2020-04-13 18:18:07 +03:00
parent c9860ae759
commit 88e8359f64
9 changed files with 1836 additions and 52 deletions

View File

@@ -33,7 +33,7 @@ func _physics_process(delta):
velocity.z = h_velocity.z
velocity.y = h_velocity.y
if !get_meta("grabbed") && !in_smart_obj && !disable_gravity:
velocity.y += -9.8 * delta
velocity.y += -9.8
velocity = move_and_slide(velocity,Vector3(0,1,0))
orientation.origin = Vector3()
fixup.origin = Vector3()