mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
make btMultiBodyFixedConstraint.cpp linear/angular constraint frame consistent
This commit is contained in:
parent
c178c101a8
commit
c480fab9a0
@ -156,7 +156,7 @@ void btMultiBodyFixedConstraint::createConstraintRows(btMultiBodyConstraintArray
|
||||
btVector3 constraintNormalAng(0,0,0);
|
||||
btScalar posError = 0.0;
|
||||
if (i < 3) {
|
||||
constraintNormalLin[i] = -1;
|
||||
constraintNormalLin[i] = 1;
|
||||
posError = (pivotAworld-pivotBworld).dot(constraintNormalLin);
|
||||
fillMultiBodyConstraint(constraintRow, data, 0, 0, constraintNormalAng,
|
||||
constraintNormalLin, pivotAworld, pivotBworld,
|
||||
|
Loading…
Reference in New Issue
Block a user