3dreamengine / 3DreamEngine

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

Camera controls work strange #43

Closed thisnickwasfree closed 4 years ago

thisnickwasfree commented 4 years ago

I have only default canera in the scene. All methods like dream.setFov (45); dream:setNear (1); dream:setFar (100); do not work (nil). But I can use dream.cam.fov = 45; dream.cam.near = 1; dream.cam.far = 100;

Luke100000 commented 4 years ago

Because those functions work on the camera object, not dream. Use dream.cam:setFov() instead. I added setter/getter to most objects since thats more professional, and some setter perform additional error checking and math.