clockwise option, joint is awake (#130)
- b3MeshDef gets stride and clockwise option - Added b3Joint_IsAwake - Added b3Body_TimeOfImpactMover - #116 - Smoother mover collision: #141 - Shape casts now ignore backside collision on mesh and height-field triangles, same as ray casts.
This commit is contained in:
parent
30c67b5e6d
commit
47d7f7cc7e
35 changed files with 2466 additions and 303 deletions
|
|
@ -478,6 +478,7 @@ void b3SolveSphericalJoint( b3JointSim* base, b3StepContext* context, bool useBi
|
|||
{
|
||||
b3Vec3 cdot = b3Sub( wB, wA );
|
||||
|
||||
// todo it might be more accurate to have the motor velocity in frameA due to sub-stepping.
|
||||
b3Vec3 lambda = b3Neg( b3MulMV( joint->rotationMass, b3Sub( cdot, joint->motorVelocity ) ) );
|
||||
b3Vec3 newImpulse = b3Add( joint->motorImpulse, lambda );
|
||||
float length = b3Length( newImpulse );
|
||||
|
|
|
|||
Loading…
Reference in a new issue