Ok. I think I got it. Thank you.
Are you working in 3d, or 2d? 3d is slight more complex than 2d, but still doable
Cheers, Paul.
Ok. I think I got it. Thank you.
var jTnum:Number = -vab.dot(t);
var jTdenom:Number = bodyA.invMass + bodyB.invMass + rap.cross(t) * rap.cross(t) * bodyA.invInertia + rbp.cross(t) * rbp.cross(t) * bodyB.invInertia;
jT = jTnum / jTdenom;
if(jT < -jN * cof || jT > jN * cof)
{
jT = jN * cof;
}
j = n * jN + t * jT