< Zurück | Inhalt | Weiter >

CHAPTER 13

Writing custom behaviors

13.1 The BehaviorTest example 13.2 ObjectSizeBehavior

13.3 ExplodeBehavior


13.4 StretchBehavior


13.5 Using behaviors for debugging 13.6 Summary

Some behaviors automatically execute complex code to modify objects within the scenegraph, so care must be taken to ensure that behavior processing does not bog down application performance. With careful design and knowledge of some of the limitations, behaviors can be a powerful asset in quickly developing or prototyping application logic.


By the end of this chapter you should have a good sense of how to develop your own behaviors. By mixing and matching your own and the built−in behaviors, you should be able to design your application logic within Java 3D’s behavior model.