SoPendulum¶
-
InventorModule
¶ genre InventorNodesAutomatic
author Silicon Graphics Inc
package MeVisLab/Standard
definition inventor.def
Purpose¶
The SoPendulum
class is derived from SoRotation
, so it applies a rotation to the current transformation.
Using engines connected to the realTime
global field, the rotation value is animated over time between two fixed rotations, achieving the effect of a swinging pendulum. The period of the swing can be adjusted by changing the speed field.
The current rotation at any time is available in the rotation field, inherited from SoRotation
.