Sets the value of a SFRotation event-in slot.
C# |
---|
public abstract void SetValue (
float[] value
) |
The following example demonstrates how to rotate
the children of a Transform node 180 degrees around the
y axis:
C# |
---|
Vrml.EAI.Node transform = ...;
Vrml.EAI.Field.EventInSFRotation set_rotation = (Vrml.EAI.Field.EventInSFRotation)transform.GetEventIn("set_rotation");
float x = 0.0f;
float y = 1.0f;
float z = 0.0f;
float angle = (float)System.Math.PI;
float[] rotation = new float[] { x, y, z, angle };
set_rotation.SetValue(rotation);
|