精選文章

SmallBurger Asset Home

  SmallBurger

2017年9月22日 星期五

Append smooth rotate process to Recastnavigation DetourCrowd system

Recastnavigation Detour Crowd is a best path find solution, but for vehicle is not, maybe open steer is better.
I try append smooth process to DetourCrowd, it looks better(smooth rotate).

What did I do?

  1. Append float currentDir[3] and float roateSpeed to dtCrowdAgent.
  2. Append Smooth process to calcSmoothSteerDirection function
  3. Store finial velocity to currentDir[3]
the result is here:




Dream continues in...

沒有留言:

張貼留言