decentraland / sdk

PM repository for SDK
Apache License 2.0
4 stars 4 forks source link

Add optional coordinates to ChangeRealm #1097

Open nearnshaw opened 3 months ago

nearnshaw commented 3 months ago

Problem: You can only jump across realms OR across space Meaning, if you’re at a scene in coordinates 50,50 you will jump to the coordinates 50,50 of Ratscape, not to 0,0 that’s where the game is really at.

Solution: Include a new parameter in the ChangeRealm function to allow you to set that

´´´ts changeRealm({realm: 'ratscape', worldCoordinates: { x: 0, y: 0 } }) ´´´

We should name the parameter worldCoordinates to keep it consistent with the teleportTo() function