Teleporting issue using reset_node()
Opened this issue · 0 comments
elvisish commented
I'm teleporting the player using this technique:
#POSITION
body.global_position = tele_target.to_global(tele_pos.to_local(body.global_position))
#ROTATION
body.basis = Basis(tele_pos.basis).inverse() * body.basis * tele_target.basis
body.basis.z *= -1
body.basis.x *= -1
#VELOCITY
body.velocity = (tele_target.basis * -1) * (body.velocity * tele_pos.basis)
smoother.reset_node(body)
Unfortunately there is a single frame stutter even when using the reset_node(), is there some way i can interpolate my own teleport code with the smoother?