2 questions on camera view
in
Contributed Library Questions
•
3 years ago
Hi everyone,
I am using PeasyCam by Mr Feinerg for my project.
1) I want to have 2 objects in the scene where the camera is used to navigate the 3D object and, while doing so, the 2D object remain in place not affected by the camera?
I have seen other did this using by adding camera() after the 3D object before the 2D object. However, in order for this to work, both camera have to be in draw. PeasyCam runs in setup instead of draw. Hence, the the view always reset to the original. Please run the below code to see it better.
2) How can i make the camera rotate the object using the object own center as the axis of rotation? Usually, when the object is not placed at the center of the screen, the rotation is off center
Hope you guys could help me out.
Alternatively If anyone has a camera class that could perform better, and is able to solve the 2 problem, please do let me know too. :)
Thanks!
1