Reference to a SFRotation event-in slot.
C# |
---|
public abstract class EventInSFRotation : |
EventIn
|
|
Click here to see the list of members.
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);
|