CSE 683: Lab #8 - DRAFT
Due Monday, Nov. 22
LAB 8: Prey-Preditor Behavioral Model
ASSIGNMENT
- Implement a prey-preditor model in a simple 3D world where the creatures move on a 2D ground plane.
- Create two sets of creatures: one a prey and one a preditor.
- Whenever a preditor gets within epsilon of a prey, the prey is eaten (disappears).
- Give the two groups different capabilities (vision, acceleration, turning radius, etc.) to make the resulting animation interesting.
- Include spatial limits on the environment and at least one simple obstacle. A bounding sphere can be used in the avoidance calculation of the obstacle.
Use forces to control the motion of the creatures:
- The wall and obstacle will have repulsive forces associated with them.
- for a prey (preditor), a preditor (prey) will have a repulsive (attractive) force associated with it - if it's within view.
For each creature type, keep the following information:
- idle velocity
- chase/escape velocity
- vision angle / depth
For each creature, keep the following information:
- type of creature (prey or preditor or already-eaten)
- current position
- current velocity
- current orientation (angle or vector)
Use some controlled randomness to individualize the creatures - at least in their initial values.
Extra Credit:
- Make a more interesting environment and creatures
- Display the field of view as a semi-transparent wedge
- Model the occlusion of obstacles
- Make the motion less dependent on randomness and more on 'reasoning'