CSC455: Homework 4


In this homework you will add steering behaviors to the previous one.

Make the following additions to your code: Both characters have a position, avelocity, and an orientation expressed as 2d vectors. The characters' speed cannot go straight from 0 to max or vice versa; there is a max acceleration applied. Use Euler integration to calculate the new position of the characters each frame, and use appropriate steering behaviors for their motion (e.g., for the guard in the chase state use the pursuit steering behavior). Manipulate only the velocity and orientation vectors with steering behaviors and/or the keyboard; the position should be calculated as described above.

Submit your sources to the dropbox before the deadline. You will also have to demonstrate your working homework to me within a week after the deadline.