Join Nostr
2026-05-18 17:23:50 UTC
in reply to

Rie on Nostr: nprofile1q…n5y0h Take the input direction as a 3D vector and rotate it by the ...

Take the input direction as a 3D vector and rotate it by the character's global rotation around the y axis, i.e.

var move_direction = input_direction.rotated(Vector3.UP, character.global_rotation.y).normalized()
character.velocity = mive_direction * speed
character.move_and_slide()

Does this solve it or do you mean a different problem?