WorldX
Introduction
The WorldX property returns the X coordinate of the cursor in world units (impacted by zooming and camera position). WorldX is typically used on 2D games, or 3D games where the Z=0 plane contains the entities. For 3D games, see the WorldXAt method.
Code Example - Moving an Entity with the Cursor
The following code shows how to move an entity instance with the cursor.
Code Example - Moving an Entity towards the Cursor
The following code shows how to move an entity instance towards the cursor.
Last updated