Game Development Reference
In-Depth Information
Summary
In this chapter, I discussed motion and collision. I started with linear and angular velocity and
acceleration and Newton's three laws of motion. Then I covered our custom Physics class that
implemented motion for our objects. I then presented a hands-on example in which we demonstrated
the application of linear and angular force on an object. Next, I covered collision detection and
collision response. We added to our previous hands-on example by adding another cube that
continuously collided with the first cube. Then we designed a gravity grid that obeyed Newton's law
of gravity. Finally, we implemented and demonstrated this gravity grid in a hands-on example.
 
Search WWH ::




Custom Search