LarryG on 12/5/2013 at 14:02
So I added two joints to my lantern, one for the wick adjustment knob and one for the wick itself. The idea is that when you frob the lantern base, the knob would turn and the wick would move up / down. The only problem is that I can only get one or the other joint to work, not both at the same time. If I specify Joint 1 as primary, the knob rotates; if I specify Joint 2, the wick moves up an down. My joint settings are:
[ATTACH=CONFIG]1664[/ATTACH]
So I thought I would use NVJointControl to get both to move at the same time. Unfortunately, it too does not move both joints. If I use
[INDENT]
NVFrobToggleTDest="[Me]"; NVJointControlOn1="TurnOn"; NVJointControlOn1Joint1=60; NVJointControlOn2="TurnOff"; NVJointControlOn2Joint1=0; NVJointControlOn3="TurnOff"; NVJointControlOn3Joint2=-0.025; NVJointControlOn4="TurnOn"; NVJointControlOn4Joint2=0.0;[/INDENT]
only the knob rotates.
But if I use
[INDENT]
NVFrobToggleTDest="[Me]"; NVJointControlOn1="TurnOff"; NVJointControlOn1Joint2=-0.025; NVJointControlOn2="TurnOn"; NVJointControlOn2Joint2=0.0; NVJointControlOn3="TurnOn"; NVJointControlOn3Joint1=60; NVJointControlOn4="TurnOff"; NVJointControlOn4Joint1=0;[/INDENT]
or get rid of the specification for Joint 1 and just use
[INDENT]NVFrobToggleTDest="[Me]"; NVJointControlOn3="TurnOff"; NVJointControlOn3Joint2=0.025; NVJointControlOn4="TurnOn"; NVJointControlOn4Joint2=0.0;
[/INDENT]
then the wick moves just fine. So the problem isn't with either the model or the Design Note. Each joint works fine independently, just not together.
I thought there was a way to get two joints on one object to move simultaneously, no? The only solution I can think of is to make one of the joints a separate object CD linked to the base and placed appropriately. Is there no better way?
Yandros on 12/5/2013 at 17:03
Sounds funny, but have you tried using (
http://thiefmissions.com/telliamed/scripts.html#doublebutton) DoubleButton? Seems like it should work although if the knob/wick relationship is reversed you may need to adjust it in the model.
Quote:
A derivative of StdLever. Manages objects with two joints. When joint 1 is on, joint 2 is off; and vice-versa. The lever is toggled when an inanimate object collides with it.
LarryG on 12/5/2013 at 18:51
That works! Yeah!!
But now I've lost my sound again ... :(
It turns out that you need FrobSounds too ...
[video=youtube;IaLFtBwbuwE]http://www.youtube.com/watch?v=IaLFtBwbuwE&feature=youtu.be[/video]
Oh happy I am!!
Thanks Yandros.