resume demos
This commit is contained in:
parent
0384bc6494
commit
91e56cbf13
1 changed files with 25 additions and 25 deletions
50
app/Mono.cs
50
app/Mono.cs
|
@ -44,10 +44,6 @@ public class Mono {
|
|||
Renderer.SetClip(0.02f, 1000f);
|
||||
|
||||
dofs = new dof[] {
|
||||
new Chiral(new dof[] {
|
||||
new RollsCursor() { handed = Handed.Left },
|
||||
new RollsCursor() { handed = Handed.Right }
|
||||
}),
|
||||
new Chiral(new dof[] {
|
||||
new WaveCursor() { handed = Handed.Left },
|
||||
new WaveCursor() { handed = Handed.Right }
|
||||
|
@ -56,6 +52,10 @@ public class Mono {
|
|||
new Trackballer() { handed = Handed.Left },
|
||||
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>
|
||||
// WaveCursor lwc = (WaveCursor)((Chiral)dofs[0]).dofs[0];
|
||||
// WaveCursor rwc = (WaveCursor)((Chiral)dofs[0]).dofs[1];
|
||||
// Trackballer ltb = (Trackballer)((Chiral)dofs[1]).dofs[0];
|
||||
// Trackballer rtb = (Trackballer)((Chiral)dofs[1]).dofs[1];
|
||||
WaveCursor lwc = (WaveCursor)((Chiral)dofs[0]).dofs[0];
|
||||
WaveCursor rwc = (WaveCursor)((Chiral)dofs[0]).dofs[1];
|
||||
Trackballer ltb = (Trackballer)((Chiral)dofs[1]).dofs[0];
|
||||
Trackballer rtb = (Trackballer)((Chiral)dofs[1]).dofs[1];
|
||||
|
||||
// if (lwc.Active) {
|
||||
// lwc.Demo(ltb.ori);
|
||||
// }
|
||||
// if (rwc.Active) {
|
||||
// rwc.Demo(rtb.ori);
|
||||
// }
|
||||
if (lwc.Active) {
|
||||
lwc.Demo(ltb.ori);
|
||||
}
|
||||
if (rwc.Active) {
|
||||
rwc.Demo(rtb.ori);
|
||||
}
|
||||
|
||||
// if (rtb.Active) {
|
||||
// rtb.Demo();
|
||||
// }
|
||||
if (rtb.Active) {
|
||||
rtb.Demo();
|
||||
}
|
||||
|
||||
// if (!shapeHeld) {
|
||||
// shapeHeld = rtb.btnPush.frameDown;
|
||||
// }
|
||||
// if (shapeHeld) {
|
||||
// shape.position = rwc.cursor.smooth;
|
||||
// shape.orientation = rtb.ori;
|
||||
// shapeHeld = !rtb.btnPull.frameDown;
|
||||
// }
|
||||
if (!shapeHeld) {
|
||||
shapeHeld = rtb.btnPush.frameDown;
|
||||
}
|
||||
if (shapeHeld) {
|
||||
shape.position = rwc.cursor.smooth;
|
||||
shape.orientation = rtb.ori;
|
||||
shapeHeld = !rtb.btnPull.frameDown;
|
||||
}
|
||||
|
||||
// I'd rather have it be pose.pos & pose.ori
|
||||
// as it's a bit of space hog
|
||||
|
|
Loading…
Add table
Reference in a new issue