How I can calculate by math this?
#1

Hello guys, I need to calculate the CENTER of this park place for one police cruiser. And then I need to put cruiser to this CENTER. Here is screen to know, about what am I sayin'

Reply
#2

Spawn a vehicle enter and park your vehicle there then type /save
Check the coordinates under My Documents >> GTA >> SAMP >> Positions

Correct me if im wrong
Reply
#3

Well, but I need to put police cruiser to the center of park place, and nobody park like this, I need to calculate it.
Reply
#4

Derpy derp... You just need to save the location for it there is no calculations involved.
Reply
#5

I know, but then it won't be like real calculated CENTER of this park slot.
Reply
#6

Riwerry wants it to be perfectly in the center of the place.That's why is he asking for calculations.
Let's say you're looking at that garage floor as it's an quadrilateral/rectangle.
You can save coords of all 4 corners.Then you calculate the diagonal,as you can get range from point A to point B and so for the C.Diagonals will be even,so center of one of them is center of the whole rectangle.
So you need to get the coordinate of the middle of that diagonal

But just park it yourself at the center of it.Why would it need to be perfectly aligned?
If you reall want it in the center that bad,here you go if you don't know how to calculate it:
Reply
#7

Get in a car first and then save the pos.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)