The Position
property of the MapNode
class represents the world position of this map node. It is a Vector3
type, which means it contains three-dimensional coordinates (x, y, z) that define the node's location in the world space.
The Position
property of the MapNode
class represents the world position of this map node. It is a Vector3
type, which means it contains three-dimensional coordinates (x, y, z) that define the node's location in the world space.
To access or modify the position of a MapNode
, you can use the Position
property. This property is public and non-static, meaning it can be accessed on an instance of MapNode
.
Example usage:
MapNode node = new MapNode();
Vector3 currentPosition = node.Position; // Get the current position
node.Position = new Vector3(10, 20, 30); // Set a new position
MapNode node = new MapNode(); // Accessing the current position of the node Vector3 currentPosition = node.Position; // Setting a new position for the node node.Position = new Vector3(10, 20, 30);