BulletSim: fix cut-and-paste typo in constraint frame setting.
This code is in the XNA module so it does not affect the normal Bullet configuration .0.8.2-post-fixes
parent
297d31b1c2
commit
8cc7433d68
|
@ -658,7 +658,7 @@ private sealed class BulletConstraintXNA : BulletConstraint
|
||||||
IndexedVector3 frame2v = new IndexedVector3(pframe2.X, pframe2.Y, pframe2.Z);
|
IndexedVector3 frame2v = new IndexedVector3(pframe2.X, pframe2.Y, pframe2.Z);
|
||||||
IndexedQuaternion frame2rot = new IndexedQuaternion(pframe2rot.X, pframe2rot.Y, pframe2rot.Z, pframe2rot.W);
|
IndexedQuaternion frame2rot = new IndexedQuaternion(pframe2rot.X, pframe2rot.Y, pframe2rot.Z, pframe2rot.W);
|
||||||
IndexedMatrix frame2 = IndexedMatrix.CreateFromQuaternion(frame2rot);
|
IndexedMatrix frame2 = IndexedMatrix.CreateFromQuaternion(frame2rot);
|
||||||
frame2._origin = frame1v;
|
frame2._origin = frame2v;
|
||||||
constraint.SetFrames(ref frame1, ref frame2);
|
constraint.SetFrames(ref frame1, ref frame2);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue