On MovePlayerTo() we can set the player's position and the camera rotation. But we need to also set the Avatar rotation.
It’s sometimes needed for a scene to adjust the player’s position. For example:
For sitting: the scene must position the player exactly aligned with the chair, then do an animation
Align an avatar animation with another entity’s animation. Ex: player pulls a lever, so the scene positions the avatar in the right spot to align exactly with the lever and runs both animations together
For multiplayer-emotes controlled by the scene: The scene can position the players in exact positions so that both emotes align well
For gameplay reasons: for example to respawn the player after death
Add optional field avatarTarget: points the avatar’s rotation to a certain set of coordinate in the scene. Works the same as the already existing cameraTarget, but rotates the avatar’s orientation.
On MovePlayerTo() we can set the player's position and the camera rotation. But we need to also set the Avatar rotation.
It’s sometimes needed for a scene to adjust the player’s position. For example:
Reference to current MovePlayerTo(): https://docs.decentraland.org/creator/development-guide/sdk7/move-player/
Add optional field avatarTarget: points the avatar’s rotation to a certain set of coordinate in the scene. Works the same as the already existing cameraTarget, but rotates the avatar’s orientation.