June 2013
Beginner
352 pages
9h 5m
English
To learn about picking a target in the scene, let's add a second cube to the scene. Again we want to click to rotate a cube, but this time, we want to pick the cube that will be the target of the action.
UserInput.java. Keep the mouse click and the key press actions for inspiration.TargetPickCenter.java. Remember to also refactor the first line of the main() method to the following:TargetPickCenter app = new TargetPickCenter();.
simpleInitApp() method into a custom method called myCube() ...Read now
Unlock full access