Reference to a MFRotation event-in slot.
C# |
---|
public abstract class EventInMFRotation : |
EventIn
|
|
Click here to see the list of members.
The following example demonstrates how to write five
rotations into the "keyValue" field of an OrientationInterpolator
node:
C# |
---|
Vrml.EAI.Node orientationInterpolator = ...;
Vrml.EAI.Field.EventInMFRotation set_keyValue = (Vrml.EAI.Field.EventInMFRotation)orientationInterpolator.GetEventIn("set_keyValue");
float[][] r = new float[5][];
r[0] = new float[] { 0.0f, 1.0f, 0.0f, 0.0f }; // no rotation
r[1] = new float[] { 0.0f, 1.0f, 0.0f, 1.5708f }; // 90 degrees around the y axis
r[2] = new float[] { 0.0f, 1.0f, 0.0f, 3.1416f }; // 180 degrees around the y axis
r[3] = new float[] { 0.0f, 1.0f, 0.0f, 4.7124f }; // 270 degress around the y axis
r[4] = new float[] { 0.0f, 1.0f, 0.0f, 0.0f }; // no rotation
set_keyValue.SetValue(r);
|