Sets the value of a SFRotation event-in slot.
Declaring type: EventInSFRotation
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void SetValue (
        float[] value
) 
Parameters
value
The new rotation value. This is a float array of at least fout elements. The first three elements are the x, y and z coordinate of the rotation axis. The fourth element is the rotation angle, in radians.
Collapse/Expand Example
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);