Door Demo - Jane Veeder, DAI 575.5 Design of Virtual Worlds, SF State University
Create two animation sequences for door object, one opens, one closes. Add one mouse sensor to door knob. Note the use of a larger door knob phantom object to hold the sensor = easier to click upon. Constrain door knob visible and phantom objects to the door (position AND orientation). Link the knob mouse sensor to both animation sequences. Select the connecting link line to the Open sequence and set the Trigger Mode parameter in the Parameter Editor to Toggle Start/Stop. Set the link to the Close sequence to Toggle Stop/Start. The door will open on the odd clicks and close on the even ones.