In some cases, you could use either a sensor or an engine to create a certain effect. Table 15.1, “Comparison of Sensors and Engines” compares sensors and engines to help you weigh the trade-offs between the two.
Sensors |
Engines |
---|---|
Are part of the application (are not written to file) |
Are part of the scene graph (can be read from file and written to file) |
Have user-defined callback functions |
Have built-in functions |
Allow explicit control over order of firing |
Are evaluated automatically |
Can be attached to any kind of field (field data sensors) |
Have inputs and outputs of a fixed type |
Can affect objects outside the scene graph |
Can affect only other nodes or engines in a scene graph |