decentraland / decentraland/sdk

Easy scene rotation

Open
#104 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
4
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Rotating a scene sounds trivial, but it's not
it often takes a whole hour to reposition everything manually,
and almost always the creators of a scene don't take into account orientation of the scene and that has to be changed last minute, it's super frustrating

Rotation needs to keep the relative positions of all entities, and keep them all within the scene parcels (assuming the scene is a square)

It should also handle trigger areas, which is trickier since they look at player coordinates

If we enable the rotation of the root entity, it's still not enough, because you also need to adjust the position of this entity to compensate for the shift caused by the rotation. Knowing how much to shift the entity and in what direction can also be quite confusing. Ideally we should have some kind of helper function that does both things.

If rotating a scenes that is built on non-square estates, obviously this will result in some entities being outside the scene bounds. In this case it's the responsibility of the creator to manually also change the parcel coordinates so that it matches the shape of the scene.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.