Course Index | Section Start | Previous Slide | Next Slide | 19 |
Method: VisibilitySensor determines whether Shape is within view
NOTE: Object is "visible" even if occluded, as long as it's in view frustum
Transform { children [ Shape { geometry Box { size 2 2 2 } } DEF VisibilityTrigger VisibilitySensor { size 2 2 2 } # size of Visibility Sensor matches size of box # and parent transform scales both evenly } ROUTE VisibilityTrigger.enterTime to myAnimation.set_startTime