Sets one element of the MFRotation event-in slot.
C# |
---|
public abstract void Set1Value (
int index,
float[] value
) |
The following example demonstrates how to write a rotation
into the first element of 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[] { 0.0f, 1.0f, 0.0f, 0.0f }; // no rotation
set_keyValue.Set1Value(0, r);
|