VRarchitect
<
ANU lectures
:
Computer Graphics
:
Behavior and Interpolator in J3D
>
[
Contact
]
[
Links
]
[
Prev. : 5 / 38 : Creating behaviors
]
[
Up
]
[
Next : 7 / 38 : Behavior class methods
]
Creating behaviors (2)
A behavior can do anything
Perform computations
Update its internal state
Modify the scene graph
Start a thread
For example, a behavior to rotate a radar dish to track an object:
On initialization, set initial wakeup criteria
Get the object's location
Create a transform to re-orient the radar dish
Set a
TransformGroup
of the radar dish
Set the next wakeup criteria
Return
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. : 5 / 38 : Creating behaviors
]
[
Up
]
[
Next : 7 / 38 : Behavior class methods
]