Reference to a SFRotation event-out slot.
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract class EventOutSFRotation :  EventOut
Collapse/Expand Remarks
Use this class to read values from SFRotation event-out slots.
Collapse/Expand Members

Click here to see the list of members.

Collapse/Expand Example
The following example demonstrates how to get the current orientation of the active Viewpoint from a ProximitySensor, and prints it to the console:
C#
Vrml.EAI.Node proximitySensor = ...;
Vrml.EAI.Field.EventOutSFRotation orientation_changed = (Vrml.EAI.Field.EventOutSFRotation)proximitySensor.GetEventOut("orientation_changed");
float[] rotation = orientation_changed.GetValue();
System.Console.WriteLine("x = " + rotation[0] + ", y = " + rotation[1] + ", z = " + rotation[2] + ", angle = " + rotation[3]);