Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends KinematicBody2D
- # Linear velocity.
- var linear_velocity : Vector2 = Vector2.ZERO
- # Ready.
- func _ready():
- pass
- # Physics process.
- func _physics_process(delta):
- move_and_slide(linear_velocity)
- # Set the linear velocity.
- func set_linear_velocity(velocity):
- linear_velocity = velocity
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement