Topic was automatically imported from the old Question2Answer platform.
Asked By
SDGN16
the player seems to teleport as my object goes left and right. How can I move the object more smoothly when it is moving?
extends KinematicBody
var v = Vector3()
func _physics_process(delta):
v = Vector3()
if Input.is_action_just_pressed("a"):
v += transform.basis.x
if Input.is_action_just_pressed("d"):
v -= transform.basis.x
move_and_collide(v * 5)