Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Z axis for Body #36

Open
ncribt opened this issue Dec 30, 2017 · 0 comments
Open

Z axis for Body #36

ncribt opened this issue Dec 30, 2017 · 0 comments

Comments

@ncribt
Copy link

ncribt commented Dec 30, 2017

Would it be possible to add the Z axis in the setPosition function of the Body like it is on Light.

Let say I have a room with walls, a player in the room and a light.
If I don't set the Z on the light and the player walk over it, it hides the light.
The Z position on Light fix this issue, but creates another one, all the bodies have the same Z, if the light is over the player, it is also over the walls and therefore goes outside the room and brighten the rest of the map as well.

The solution would be to allow a Z position on the bodies as well so we could for example put a Z value of 5 on the light in the room, the player would have something like 2 and the walls would have 8.

This way the light would not be hidden by the player if they are on the same position but would not go outside the room because the walls would be taller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant