Understanding the Coordinate System in VEXcode VR

In VEXcode VR, the VR Robot moves around different Playgrounds that are based on a coordinate system.


Coordinate Systems (X, Y)

VEXcode VR coordinate system showing the X- and Y-axes meeting at the origin

A coordinate system is a mathematical grid of values. There are different types of coordinate systems, but the Cartesian Coordinate System, or the (x,y) plane, is used in VEXcode VR. This is also known as a 2D (Dimensional) system, since its two dimensions are the X and Y axis.

Coordinate plane showing the origin at the center where the x- and y-axes intersect

The X and Y axis can be used to locate a specific point, or coordinate, of the VR Robot on the Playground. The X-coordinate determines the horizontal (left to right) position of the specific point. The Y-coordinate determines the vertical (up and down) position of the point. The VEXcode VR Playgrounds range from -1000mm to 1000mm for both the X and Y axis.

The center of the Playground lies on the coordinate (0, 0) or also known as the origin.

Robot position on the VEXcode VR coordinate grid

The specific X and Y location of the VR Robot can be found in the Dashboard of the Playground.


Playground Size

VR Robot positioned at the origin (0,0) on the Playground coordinate grid

The Playgrounds range from -1000mm to 1000mm on both the X and Y axes. This makes the dimensions of the VEXcode VR Playground 2000mm x 2000mm.

VR Robot at the origin (0, 0) on a 200 mm coordinate grid

The measurement of each of the individual squares used to make up the grids on many of the VEXcode VR Playgrounds, such as the Grid World, are 200mm by 200mm.


Blocks

VEXcode VR blocks toolbar with categories for Drivetrain, Sensing, and Control

VEXcode VR features a Location sensor that reads (X,Y) coordinates from the front-center of the VR Robot. That sensor can be used with the position for block for both the X and Y values. 

Position Angle block displays the VR robot’s X and Y coordinates and heading in degrees.

The Location sensor also will report on the position angle of the VR Robot by using the position angle block. 

For more information about blocks, view the Help information.


Directions

VR Robot top view showing its position and forward direction on the coordinate grid

The VR Robot follows a rotational number system from 0 to 359.99 in a clockwise rotation. 

Playground showing the robot’s X and Y position and heading in the coordinate system

The Location Angle of the VR Robot can be found in the Dashboard of the Playground

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: