How to get Object's location when hit from convexSweepTest?
Posted: Tue Jul 21, 2015 10:32 am
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?
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?