mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-10-29 20:15:35 +00:00
Add support for b3Generic6DofConstraint in Bullet, CPU only for now. Also the b3GpuDynamicsWorld supports conversion of this constraint.
This means, picking works both with and without holding SHIFT (rayTest is only implemented for spheres)
This commit is contained in:
@@ -1137,7 +1137,7 @@ b3Scalar b3PgsJacobiSolver::solveGroupCacheFriendlySetup(b3RigidBodyCL* bodies,
|
||||
for (j=0;j<numConstraints;j++)
|
||||
{
|
||||
b3TypedConstraint* constraint = constraints[j];
|
||||
constraint->buildJacobian();
|
||||
|
||||
constraint->internalSetAppliedImpulse(0.0f);
|
||||
}
|
||||
}
|
||||
@@ -1169,7 +1169,7 @@ b3Scalar b3PgsJacobiSolver::solveGroupCacheFriendlySetup(b3RigidBodyCL* bodies,
|
||||
}
|
||||
if (constraints[i]->isEnabled())
|
||||
{
|
||||
constraints[i]->getInfo1(&info1);
|
||||
constraints[i]->getInfo1(&info1,bodies);
|
||||
} else
|
||||
{
|
||||
info1.m_numConstraintRows = 0;
|
||||
|
||||
Reference in New Issue
Block a user