x


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!

more ▼

asked Dec 07 '10 at 05:11 PM

jyou23 gravatar image

jyou23
1 1 1 1

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3665
x2731
x2705
x444
x56

asked: Dec 07 '10 at 05:11 PM

Seen: 1151 times

Last Updated: Dec 07 '10 at 05:11 PM