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

Post Reply
donggas90
Posts: 17
Joined: Tue May 19, 2015 10:01 am

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

Post 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?
donggas90
Posts: 17
Joined: Tue May 19, 2015 10:01 am

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

Post by donggas90 »

Solved by fraction.
Post Reply