AI and physics Objects

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Rademanc
Posts: 16
Joined: Sat Apr 25, 2009 4:21 pm

AI and physics Objects

Post by Rademanc »

Hi there.
I would like to move my little AI characters around, but they should still react to physics e.g if they get hit by a rock they should be thrown back, but then still try and move to the position they were heading. I won't have more than 30 on the screen at any one time.
How can I do this?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: AI and physics Objects

Post by Norbo »

I would start by using something like the simple character controller for the characters. You can find it, with a little information, in an attachment in this thread: http://www.bepu-games.com/forums/viewto ... ?f=4&t=477

You could then use the AI to calculate whatever movement direction is necessary to accomplish the character's current goals periodically and change the character controller's movementDirection accordingly. The character could then bounce around and still find its way to where its supposed to go.
Post Reply