Code: Select all
[BallContactCallback:addSingleResult(292)] collisionType0: 2, collisionType1: 1, cp.distance: -0.067029
[BallContactCallback:addSingleResult(309)] cp.lifeTime: 0, cp.appliedImpulse: 0.000000, body0vel: (0.396354, 1.623162, -52.398472), body1vel: (0.000000, 0.000000, 0.000000)
[BallContactCallback:addSingleResult(321)] cp.normal: (-0.000002, 0.000002, 1.000000), cp.posA: (0.524337, 0.418708, -0.067029), cp.posB: (0.524336, 0.418709, -0.000000), cp.m_appliedImpulseLateral1: 0.000000, cp.m_appliedImpulseLateral2: 0.000000
[BallContactCallback:addSingleResult(326)] cp.m_contactCFM1: 0.000000, cp.m_contactCFM2: 0.000000, cp.m_contactMotion1: 0.000000, cp.m_contactMotion2: 0.000000
I guess I theoretically could calculate it with the two velocities and the normal, but since bullet certainly calculates this internally at some point, it should be retrievable I guess.
Using Bullet 2.77.
BR, apanloco