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
Question About Bullet ?
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Question About Bullet ?
Yes. Bullet constraint solver applies impulses in each contact point.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
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