Character Controller Steering

Please don't post Bullet support questions here, use the above forums instead.
thelovegoose
Posts: 7
Joined: Tue Nov 16, 2010 9:14 pm

Character Controller Steering

Post by thelovegoose »

I'm planning to implement character controller 'steering' in bullet to avoid obstacles as it follows a path.

What I'd like to do is to cast a volume into the scene ahead of a moving character to determine if the move direction needs to be adjusted.
The closest obstacle that collides with that volume has its centre point queried - if it is to the left of the current move direction, turn right, if its to the right, turn left.

Image

Is the best way to do this to do a convexSweepTest?
If so, how would you go about setting the to and from transforms to ensure that it is produced from the front of the character controller to a few units ahead?

*Edited to simplify
Last edited by thelovegoose on Tue Feb 08, 2011 11:16 am, edited 1 time in total.
thelovegoose
Posts: 7
Joined: Tue Nov 16, 2010 9:14 pm

Re: Character Controller Steering

Post by thelovegoose »

If this is in the wrong forum could it be moved please?