- Home /
Help with kinematic NPCs following non-Kinematic player and avoiding obstacles
Hi, I want to make some fairies NPCs following the avatar that is controlled by physics using forces. However for the NPCs part I want to control their positions and rotations directly using flocking steering algorithm (http://www.red3d.com/cwr/steer/gdc99/).
Options:
1) Set the NPC as kinematic rigid body, and I manually update their positions and rotations by that algorithm, is that possible to still make use of the physics to avoid going into the obstacles for NPC without implementing the collision detection by myself?
2) Set the NPC as non-Kinematic rigid body as I did for the avatar, and all of them are controlled by physics. In this case, since all I need to input are the forces, is that still possible to make use of the flocking algorithm on the NPC to make it follow the avatar? Plus I dont want the NPCs to apply any force to the avatar if they can collide.
Thanks!