Question: App: Processing Language: Java Write an animation in which the camera rotates according to the user input. If the user presses Q, then the camera
App: Processing
Language: Java

Write an animation in which the camera rotates according to the user input. If the user presses "Q", then the camera rotates around a circle with a radius of 200px looking at the origin. Else if the user presses " A ", the camera rotates around itself not looking at the origin but to a point in infinity (or to a point far far away). The screen size and any other code is up to you. Please remember that 1. The default camera position is: camera(width/2.0, height/2.0, (height/2.0) /tan(PI60.0/360.0), width/2.0, height/2.0, 0, 0, 1, 0); 2. The camera parameters are: camera(camX, camY, camZ, lookX, lookY, lookZ, upX, up Y, upZ)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
