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 (Steering Behaviors For Autonomous Characters).
Options:
-
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?
-
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 don’t want the NPCs to apply any force to the avatar if they can collide.
Thanks!