Merge branch 'master' of github.com:unfa/jam-01

remotes/1711838515240372319/godot4-port
Tobiasz Karoń 2020-09-19 20:27:18 +02:00
commit 76469851d5
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,10 @@ func gravity():
if not is_on_floor():
self.velocity.y -= GRAVITY
func get_closest_point(A: Vector3, B: Vector3):
var diff = B - A
return A - (A.dot(diff) * diff) / (diff.length_squared())
remote func walk(direction: Vector2):
var walkDirectionNormalized = direction.normalized()