decentraland / creator-hub

MIT License
0 stars 4 forks source link

Add avatar rotation to MovePlayerTo() #214

Open nearnshaw opened 3 days ago

nearnshaw commented 3 days ago

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.