Command of the Week - Coordinates (Week 15)
This series is called the command of the week, but it could also explain a feature. The explanations will tend to explain the technical parts of the command, and is intended to highlight the basics (and complexities) of the command, and information about how to use it, but won't be a detailed tutorial. It is up to you to use it creatively in your maps.
Week 15 - CoordinatesWhile many maps can be made just fine without even looking at the coordinates at all, the coordinate system in CC3+ can be extremely helpful when you need some more precision in your map. We've talked about modifiers before, which is one way of achieving precision relative to other entities, but using the coordinates properly helps us archive precision in other ways, including precision sizing.
Where to find it?Status Bar: [Image_8234]
Menu: Info -> Coordinate
Command Line: ID
Different types of CoordinatesThere are three different variations of coordinates; absolute, relative and polar. Let us see what the difference between these are, and how to identify them
Absolute CoordinatesThe absolute coordinates are the simplest one, and they are simply actual coordinates on your map. (0,0) is found in the lower left corner, and if your map is 1000 by 800, the (1000,800) coordinate is found in the upper right corner. So, when using absoulte coordinates, they tell you exactly where in your map they are, without any ambiguity. You can identify that the coordinate display on the status bar is showing you absolute coordinate by checking that it starts with the letter "T" (and no symbols in front of the T). Note that you can switch which types of coordinates it displays simply by clicking on it.
Relative CoordinatesThe relative coordinates can often be more interesting than absolute coordinates, because they describe the distance from the previous point we used. Using these makes it extremely easy to make shapes of exact dimensions, without any regard at all to the exact coordinates used by the previous point, since we are really just interested in the distances (X and Y) from he previous point, not where it might be in the drawing. You can have the status bar displaying relative coordinates by clicking on the display until it starts with @T.
Polar CoordinatesPolar coordinates are great when you need to make a line a certain length, but at an angle. When doing this, it is cumbersome to use straight cartesian coordinates, because you have to start using trigonometry to calculate the coordinates. Polar coordinates on the other hand is based on supplying the angle and the distance. It is important to note that these coordinates are also relative to the last point placed. To have the status bar show polar coordinates, click on it until it starts with <T.
How to use them?The basic use of coordinates is just to treat them as information. Switch the coordinate display to the one you prefer, and just keep an eye on it. However, a more advanced use of coordinates is to type them in on the command line whenever CC3+ asks for a point. Let us explore this with a few examples. Note that these examples use primitive shapes, but you can still use these tricks in the middle of a more complex shape. For example, the example with a line at an angle below could just as well be applied to a single segment in the middle of drawing a larger shape using a drawing tool or for a segment of a dungeon corridor using DD3's corridor tool. Don't limit yourself to the few shapes I highlight, this works whenever CC3+ needs a point.
A 28x28 squareTo create a square (or rectangle) of a specific size, typing the coordinates in at the command line is the easiest option (if the size and location matches your snap grid, you may prefer to simply use snaps instead however, but if it doesn't, typing coordinates is the easy way to go). Simply click the Box tool button, and place the first point anywhere in the drawing by clicking with your mouse. The command line should now ask for 'Opposite Corner'. Instead of trying to place this with your mouse, simply start typing @28,28 and hit Enter. (Note that you don't need to click on the command line to activate it or anything, simply start typing)
Note the @-sign in the coordinates we typed. This tells CC3+ that the coordinates we typed are relative coordinates, which means go 28 map units in the poitive X direction and 28 map units in the positive Y direction from the first point we placed. If we hadn't included the @ prefix, the second corner would have ended up on the absolute location of (28,28) instead of being a distance from the first corner.
A 10' line at a 45 degree angleFor this example, we will use polar coordinates to save ourselves from using trigonometry to calculate coordinates.
Click the Line button to start drawing a line, and place the first point anywhere using your mouse (or, if you have a spesific starting point in mind, such as (10,10), simply type 10,10 on the command line and hit enter). Now, the command line will ask for the next point. Simply type in
A Dungeon corridorThis last example shows a dungeon corridor made wholly by typing coordinates into the command line. All the coordinates used are shown visually in the image. The first coordinate is the absolute (10,10) one. All coordinates are typed into the command line exactly as shown in the image, just hit enter after typing each pair. For reference, the corridor is 5' wide, if you use a wider corridor, you will need to change the coordinates to match.