Reference to a SFRotation event-in slot.
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract class EventInSFRotation :  EventIn
Collapse/Expand Remarks
Use this class to write values into SFRotation event-in slots.
Collapse/Expand Members

Click here to see the list of members.

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);