Page 1 of 1

How to get Object's location when hit from convexSweepTest?

Posted: Tue Jul 21, 2015 10:32 am
by donggas90
Hi, now I'm making a player's moving with Bullet.

My plan is:
1. Sweep the player shape from current location to desired direction using btCollisionWorld::convexSweepTest().
2. Get the closest hit of sweep results.
3. Set new location of player to the shape's location of the hit result.

Step 1 and 2 seems to be OK, but last 3 is a problem.
Bullet return only hit location, not Object's location at that time.

Is there any idea to solve this problem?

Re: How to get Object's location when hit from convexSweepTe

Posted: Tue Jul 21, 2015 8:49 pm
by donggas90
Solved by fraction.