14
Nov
} //– make sure gravity does it s share
Figure 12-3 The BouncingBox class The BouncingBox Constructor The constructor of a bouncing box takes two parameters: the world in which it should be inserted and the starting position. The base class, fMovingObject, is constructed by setting the velocity and angle to zero. The angular velocity is set to PI, making the moving object rotate about the y-axis with an angular velocity of PI rad/s. The next line in the constructor tells the base class fObject which polyhedron instance to use. Without a polyhedron instance, the object cannot be painted by a camera. Previous Table of Contents Next
Note: If you are looking for good and affordable webspace to host and run your servlet application check Virtualwebstudio servlet hosting services
