Vector3 WorldOrigin { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The WorldOrigin property of the SceneMap class represents the origin point of the map in world coordinates. It is a Vector3 value that defines the position in the 3D space where the map's origin is located. This property is useful for understanding the spatial layout of the map within the scene world.

Usage

To access the WorldOrigin property, you need to have an instance of the SceneMap class. You can then retrieve or set the world origin as needed. This property is not static, so it must be accessed through an instance of SceneMap.

Example

// Assuming 'sceneMap' is an instance of SceneMap
Vector3 origin = sceneMap.WorldOrigin;

// Output the world origin coordinates
Log.Info($"World Origin: {origin}");

// Set a new world origin
sceneMap.WorldOrigin = new Vector3(100, 200, 300);