VRarchitect
<
ANU lectures
:
Computer Graphics
:
Behavior and Interpolator in J3D
>
[
Contact
]
[
Links
]
[
Prev. : 20 / 38 : Waking up on viewer proximity
]
[
Up
]
[
Next : 22 / 38 : WakeupCondition class hierarchy
]
Composing wakeup criterion
A behavior can wake up when a set of criterion occur:
Criterion are ANDed and ORed together to form wakeup conditions
For example:
Wakeup on any of several AWT events (mouse press, release, or drag)
Wakeup on viewer proximity OR after some time has elapsed
Wakeup conditions can be complex and changing, for example:
In a game, the user must press two buttons within a time limit to open a door
Behavior's initial wakeup conditions are:
Viewer near button 1 or viewer near button 2
After button 1 is pressed, conditions become:
Viewer near button 2 or time elapsed
If time elapses, conditions revert back to the initial one
If button 2 is pressed in time, behavior sends event to wakeup door-opening behavior, then exits without rescheduling
Enter terms you are looking for.
Send the search form
Web
www.vrarchitect.net
VRarchitect
<
ANU lectures
:
Computer Graphics
:
Behavior and Interpolator in J3D
>
[
Contact
]
[
Links
]
[
Prev. : 20 / 38 : Waking up on viewer proximity
]
[
Up
]
[
Next : 22 / 38 : WakeupCondition class hierarchy
]