Main Content

vrnode

(To be removed) Create node or handle to existing node

vrnode will be removed in a future release. For more information, see Version History.

Syntax

mynode = vrnode
mynode = vrnode([])
mynode = vrnode(vrworld_object,'node_name')
mynode = vrnode(vrworld_object, 'node_name','node_type')
mynode = vrnode(vrworld_object, 'USE', othernode)
mynode = vrnode(parent_node,'parent_field', 'node_name', 
'node_type')
mynode = vrnode(parent_node,'parent_field', 'USE', 
'othernode')

Arguments

vrworld_object

Name of a vrworld object representing a virtual world.

node_name

Name of the node.

node_type

Type of the node.

parent_node

Name of the parent node that is a vrnode object.

parent_field

Name of the field of the parent node.

'USE'

Enables a USE reference to another node.

othernode

Name of another node for a USE reference.

Description

mynode = vrnode creates an empty vrnode handle that does not reference any node.

mynode = vrnode([]) creates an empty array of vrnode handles.

mynode = vrnode(vrworld_object,'node_name') creates a handle to an existing named node in the virtual world.

mynode = vrnode(vrworld_object, 'node_name','node_type') creates a new node called node_name of type node_type on the root of the virtual world. It returns the handle to the newly created node.

mynode = vrnode(vrworld_object, 'USE', othernode) creates a USE reference to the node othernode on the root of the world vrworld_object. It returns the handle to the virtual world to the original node.

mynode = vrnode(parent_node,'parent_field', 'node_name','node_type') creates a new node called node_name of type node_type that is a child of the parent_node and resides in the field parent_field. It returns the handle to the newly created node.

mynode = vrnode(parent_node,'parent_field', 'USE', 'othernode') creates a USE reference to the node othernode as a child of node parentnode and resides in the field parentfield. It returns the handle to the original node.

A vrnode object identifies a virtual world node in a way very similar to a handle. If you apply the vrnode method to a node that does not exist, the method creates a node, the vrnode object, and returns the handle to the vrnode object. If you apply the vrnode method to an existing node, the method returns the handle to the vrnode object associated with this node.

Method Summary

MethodDescription
deleteRemove vrnode object
fieldsVirtual world field summary of node object
isfieldReturns true if field is name of vrnode object field
getProperty value of vrnode object
getfieldField value of vrnode object
isvalid1 if vrnode object is valid, 0 if not
interpolateInterpolate field value of vrnode object
setChange property of virtual world node
setfieldChange field value of vrnode object
syncEnable or disable synchronization of virtual world fields with client
optimizeChange geometries to reduce number of vertices
parentReturn the parent node of the vrnode object
propagatePropagate value of selected property to vrnode object

Version History

Introduced before R2006a

collapse all

R2023b: To be removed

The vrnode will be removed in a future release. Instead, use sim3d classes and Simulation 3D blocks to interface MATLAB® and Simulink® with the Unreal Engine® 3D simulation environment. To get started, see Create 3D Simulations in Unreal Engine Environment.