Game Development Reference
In-Depth Information
In observing the motion and movement of the Enemy in general, you may want to tweak his speed
and pathfinding size. Perhaps when moving, the Enemy's arms or legs, or the fringes of his body,
sometimes penetrate through the wall and other obstacles. This is because pathfinding calculates
object position and motion using an invisible cylinder object. The idea is to size and position the
cylinder to act as a bounding volume. These settings can be controlled by the NavMeshAgent
component (see Figure 7-17 ). Here, I've set the agent Speed to 2 (units per second), the Stopping
Distance to 1.5 , the cylinder Radius to 0.69 , and the cylinder Height to 2.3 .
Figure 7-17. Sizing the Enemy pathfinding cylinder: this can improve agent navigation and behavior
 
Search WWH ::




Custom Search