resume demos

This commit is contained in:
spatialfree 2022-11-10 14:34:03 -05:00
parent 0384bc6494
commit 91e56cbf13

View file

@ -44,10 +44,6 @@ public class Mono {
Renderer.SetClip(0.02f, 1000f); Renderer.SetClip(0.02f, 1000f);
dofs = new dof[] { dofs = new dof[] {
new Chiral(new dof[] {
new RollsCursor() { handed = Handed.Left },
new RollsCursor() { handed = Handed.Right }
}),
new Chiral(new dof[] { new Chiral(new dof[] {
new WaveCursor() { handed = Handed.Left }, new WaveCursor() { handed = Handed.Left },
new WaveCursor() { handed = Handed.Right } new WaveCursor() { handed = Handed.Right }
@ -56,6 +52,10 @@ public class Mono {
new Trackballer() { handed = Handed.Left }, new Trackballer() { handed = Handed.Left },
new Trackballer() { handed = Handed.Right } new Trackballer() { handed = Handed.Right }
}), }),
new Chiral(new dof[] {
new RollsCursor() { handed = Handed.Left },
new RollsCursor() { handed = Handed.Right }
}),
}; };
} }
@ -122,30 +122,30 @@ public class Mono {
} }
// <Heresy> // <Heresy>
// WaveCursor lwc = (WaveCursor)((Chiral)dofs[0]).dofs[0]; WaveCursor lwc = (WaveCursor)((Chiral)dofs[0]).dofs[0];
// WaveCursor rwc = (WaveCursor)((Chiral)dofs[0]).dofs[1]; WaveCursor rwc = (WaveCursor)((Chiral)dofs[0]).dofs[1];
// Trackballer ltb = (Trackballer)((Chiral)dofs[1]).dofs[0]; Trackballer ltb = (Trackballer)((Chiral)dofs[1]).dofs[0];
// Trackballer rtb = (Trackballer)((Chiral)dofs[1]).dofs[1]; Trackballer rtb = (Trackballer)((Chiral)dofs[1]).dofs[1];
// if (lwc.Active) { if (lwc.Active) {
// lwc.Demo(ltb.ori); lwc.Demo(ltb.ori);
// } }
// if (rwc.Active) { if (rwc.Active) {
// rwc.Demo(rtb.ori); rwc.Demo(rtb.ori);
// } }
// if (rtb.Active) { if (rtb.Active) {
// rtb.Demo(); rtb.Demo();
// } }
// if (!shapeHeld) { if (!shapeHeld) {
// shapeHeld = rtb.btnPush.frameDown; shapeHeld = rtb.btnPush.frameDown;
// } }
// if (shapeHeld) { if (shapeHeld) {
// shape.position = rwc.cursor.smooth; shape.position = rwc.cursor.smooth;
// shape.orientation = rtb.ori; shape.orientation = rtb.ori;
// shapeHeld = !rtb.btnPull.frameDown; shapeHeld = !rtb.btnPull.frameDown;
// } }
// I'd rather have it be pose.pos & pose.ori // I'd rather have it be pose.pos & pose.ori
// as it's a bit of space hog // as it's a bit of space hog