Constraint.UpVectorReference

Description

Sets or returns the X3DObject acting as the UpVector reference.

C# Syntax

// get accessor
X3DObject rtn = Constraint.UpVectorReference;
// set accessor
Constraint.UpVectorReference = X3DObject;

Examples

VBScript Example

'
' This example creates a constraint and sets its upvector reference. 
'
NewScene , false
set oRoot = Application.ActiveProject.ActiveScene.Root
set oNull = oRoot.AddNull("ConstrainingNull")
set oNull2 = oRoot.AddNull("UpVectorReference")
set oGrid = oRoot.AddGeometry("Grid","MeshSurface")
set oDirectionCns = oGrid.Kinematics.AddConstraint("Direction", oNull )
oDirectionCns.Parameters("upvct_active").Value = True
set oDirectionCns.UpVectorReference = oNull2