How to add collision from convex sweep test to bullet solver

MRopret
Posts: 3
Joined: Sat Sep 29, 2012 10:49 pm

How to add collision from convex sweep test to bullet solver

Post by MRopret »

Hello,

I need CCD so I perform a convexSweepTest (setCcdMotionThreshold and setCcdSweptSphereRadius don't seem to work).

With convexSweepTest I successfully detect the collision, now my question is how do I add this collision to bullet so it will solve it as if it were any other normal collision?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: How to add collision from convex sweep test to bullet so

Post by Erwin Coumans »

Can you try out the latest Bullet trunk? It adds the collisions/contact points from the convex sweep test (when using setCcdMotionThreshold and setCcdSweptSphereRadius) to the constraint solver.
MRopret
Posts: 3
Joined: Sat Sep 29, 2012 10:49 pm

Re: How to add collision from convex sweep test to bullet so

Post by MRopret »

It works with the new version, thought it was actually my fault because I forced a new position and velocity on the rigid body.