Sets the value of a SFVec3f event-in slot.
Declaring type: EventInSFVec3f
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void SetValue (
        float[] value
) 
Parameters
value
The new vector value. This is an array of at least three float values. The first value is the x component of the vector, the second the y component, and the third the z component.
Collapse/Expand Example
The following example demonstrates how to translate the children of a Transform node 1 unit upwards:
C#
Vrml.EAI.Node transform = ...;
Vrml.EAI.Field.EventInSFVec3f set_translation = (Vrml.EAI.Field.EventInSFVec3f)transform.GetEventIn("set_translation");
float x = 0.0f;
float y = 1.0f;
float z = 0.0f;
float[] translation = new float[] { x, y, z };
set_translation.SetValue(translation);