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?
How to get Object's location when hit from convexSweepTest?
-
- Posts: 17
- Joined: Tue May 19, 2015 10:01 am
-
- Posts: 17
- Joined: Tue May 19, 2015 10:01 am
Re: How to get Object's location when hit from convexSweepTe
Solved by fraction.