Question About Bullet ?

momoreda
Posts: 25
Joined: Mon Oct 08, 2007 2:09 pm
Location: France

Question About Bullet ?

Post by momoreda »

I am new to BULLET and would like to use it. But i want to know if BULLET Allows access to the values of forces applied ?

Thanks
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Question About Bullet ?

Post by Erwin Coumans »

momoreda wrote:I am new to BULLET and would like to use it. But i want to know if BULLET Allows access to the values of forces applied ?

Thanks
Yes. Bullet constraint solver applies impulses in each contact point.

You can iterate over all contact points, and read out the m_appliedImpulse.

Best is to do this by deriving your own class from btSequentialImpulseConstraintSolver, and override the virtual method 'solveGroup'. Call the base class 'solveGroup' first, and then read out all contact from the contact manifolds.

If I get to it, I'll implement this in a demo, as sample code.
Hope this helps,
Erwin