Examples/mvp-walk-with-collision @bel
This commit is contained in:
8
Examples/mvp-walk-with-collision/Entities/Characters/character.gd
Executable file
8
Examples/mvp-walk-with-collision/Entities/Characters/character.gd
Executable file
@@ -0,0 +1,8 @@
|
||||
extends PhysicsBody3D
|
||||
|
||||
var mover = new("res://Entities/Characters/Movers/pedal.gd")
|
||||
|
||||
func _physics_process(delta: float):
|
||||
duo = self.mover.to_move_rotate(delta)
|
||||
velocity = duo[0]
|
||||
move_and_slide()
|
||||
Reference in New Issue
Block a user