You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Would it be possible to add the Z axis in the
setPosition
function of theBody
like it is onLight
.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
The text was updated successfully, but these errors were encountered: