Skip to main content

Conceptual Question about behaviors?

2 replies [Last post]
CuppoJava
Offline
Joined: 2006-02-17

Okay I was just reading about how Behaviors work when I came across this line:

If the ViewPlatform object's activation volume does not intersect with a behavior's scheduling region, Java 3D can safely ignore that behavior's wakeup criterion.

Does this mean that If I associate an action with my Game Sprite, it won't do it until ýt's visible? Say I want a character to move left when I press the left arrow key. Does this mean that if the character is not visible, then he cannot move left?

Also, is it possible to put physics calculation code in the preRender() method in Canvas3D instead of using a behavior?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pepe
Offline
Joined: 2003-06-10

not until it's visible. until its scheduling bounds are out of the VP fulstrum. You don't need to have a behavior attached to the 'sprite'(avatar?) itself (its transformgroup).
Attach it to the VP transformGroup and never be bothered, or make the scheduling bound as big as your world.

CuppoJava
Offline
Joined: 2006-02-17

Sorry I'm a complete noob to this...

Can you tell me what VP stands for? Whats the VP Transform Node?