3dreamengine / 3DreamEngine

3DreamEngine is an *awesome* 3d engine for LÖVE.
MIT License
393 stars 17 forks source link

Sun direction #46

Closed thisnickwasfree closed 4 years ago

thisnickwasfree commented 4 years ago

looks like dream:setSunDir(direction) does not affect sun trajectory. I've used different values with no result. Is it possible to turn sun's trajectory at 90° somehow? Through setSunDir or some kind of setNorth function?

Luke100000 commented 4 years ago

setSunDir is messing with setDaytime, switch those lines to they overwrite correctly. Setting the suns orientation is currently not popssible. Do you need it?

thisnickwasfree commented 4 years ago

That ll be useful to have control on sun's way at sky dome. North can be at any direction during level development, and remaking of the whole map sometimes not an option.

Luke100000 commented 4 years ago

next commit will contain an additional argument in setSunOffset which allows you to set the rotation.