Convex sweep test fails

jhooks1
Posts: 2
Joined: Tue Mar 20, 2012 10:34 pm

Convex sweep test fails

Post by jhooks1 »

I am working on a new physics implementation for the openmw project. Our previous implementation (used bullet) used a kinematic controller to implement physics, and had many problems (getting stuck, couldn't climb stairs), but it sort of worked.

I am porting the pmove (uses bullet) from Project Aedra over into our project. The pmove solution works a lot better than our kinematic implementation.

Our objects are represented by Rigid Bodies (subclass of btRigidBody) and the world is represented by a btDiscreteDynamicsWorld.


convexSweepTest(&newshape, from, to, newTraceCallback); is used to detect collisions. NewShape is a bounding box. From and to are positions. newTraceCallback never hits (hasHit() always false). The player just ends up falling forever, right through the ground. Any ideas of what could be wrong, or a better way to test collisions?

I am a bullet noob :x
jhooks1
Posts: 2
Joined: Tue Mar 20, 2012 10:34 pm

Re: Convex sweep test fails

Post by jhooks1 »

Thinking now it may be the difference between the two projects coordinate system that may be causing the problem.