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.

Windows

Default Panel

../../../Modules/Inventor/InventorBase/mhelp/Images/Screenshots/SoPendulum._default.png

Output Fields

self

name: self, type: SoNode

Parameter Fields

Field Index

On: Bool
Rotation: Rotation
Rotation0: Rotation
Rotation1: Rotation
Speed: Float

Visible Fields

Rotation

name: rotation, type: Rotation, default: 0 0 1 0

The current rotation.

Rotation0

name: rotation0, type: Rotation, default: 0 0 1 0

The starting rotation.

Rotation1

name: rotation1, type: Rotation, default: 0 0 1 0

The ending rotation.

Speed

name: speed, type: Float, default: 1

Defines the speed of the pendulum, in cycles per second.

On

name: on, type: Bool, default: TRUE

Allows applications to enable or disable the motion easily.