HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

point offset and angle question.

07-26-2003, 09:43 PM#1
piRo-piOn
umm can someone please help me figure this out:

Capital X = center of a human scout tower
Bunch of xs = Area of a scout tower
Os = the points i want to figure out
+ - | = pathing grid ( the grid upon which buildings are built )

and i need the rotational values for North, South, East and West (i tried doing this in WEdit by placing units facing that way and checking thier facing values but this doesn't seem to work for some odd reason)

Code:
+---+---+---+---+
|   |   |   |   |
|   |   |   |   |
+---+---O---+---+
|   |xxx|xxx|   |
|   |xxx|xxx|   |
+---O---X---O---+
|   |xxx|xxx|   |
|   |xxx|xxx|   |
+---+---O---+---+
|   |   |   |   |
|   |   |   |   |
+---+---+---+---+

also, is there any way that i can get a boolean value for if a building can be built in a certain place?
07-27-2003, 04:02 AM#2
nagelin
north is 90 degrees
east 0/360
south 270
west 180

otherwise you can get those points by offsets of x and y.
1 cell (size of scout tower pathing) is 128x128

you could find those points either as position of unit (tower) offset by (0,64), (64,0),(-64,0),(0,-64) or position of unit(tower) with polar offset of 64 toward 0,90,180,270 degrees.
07-27-2003, 04:32 AM#3
piRo-piOn
thx