DutchCaffeine Posted January 9, 2010 Posted January 9, 2010 Hello everybody, I need a colrectangle, but i don't know how i need to get the coordinates and the size of it. How math all that, does someone know it?
DutchCaffeine Posted January 9, 2010 Author Posted January 9, 2010 Hello everybody, I need a colrectangle, but i don't know how i need to get the coordinates and the size of it. How math all that, does someone know it?
50p Posted January 9, 2010 Posted January 9, 2010 Hello everybody,I need a colrectangle, but i don't know how i need to get the coordinates and the size of it. How math all that, does someone know it? https://wiki.multitheftauto.com/wiki/CreateColRectangle
50p Posted January 9, 2010 Posted January 9, 2010 Hello everybody,I need a colrectangle, but i don't know how i need to get the coordinates and the size of it. How math all that, does someone know it? https://wiki.multitheftauto.com/wiki/CreateColRectangle
DutchCaffeine Posted January 9, 2010 Author Posted January 9, 2010 I know the function. But lets take a look at the arguments: float fX, float fY, float fWidth, float fDepth How to get these stuff, the x, y, and width and depth? That is my question.
DutchCaffeine Posted January 9, 2010 Author Posted January 9, 2010 I know the function. But lets take a look at the arguments: float fX, float fY, float fWidth, float fDepth How to get these stuff, the x, y, and width and depth? That is my question.
Gamesnert Posted January 9, 2010 Posted January 9, 2010 Eh... I'm not sure if anyone follows you... You mean you want to know at what position a colshape is which is already created? If that's the case, getElementPosition?
Gamesnert Posted January 9, 2010 Posted January 9, 2010 Eh... I'm not sure if anyone follows you... You mean you want to know at what position a colshape is which is already created? If that's the case, getElementPosition?
50p Posted January 9, 2010 Posted January 9, 2010 Are you being serious now or do you make a joke out of us? You must know the location (X,Y) where you want it to be... https://community.multitheftauto.com/index.php?p= ... ils&id=124 Width and depth depend on you.. weather you want it to be huge or small... You decide.
50p Posted January 9, 2010 Posted January 9, 2010 Are you being serious now or do you make a joke out of us? You must know the location (X,Y) where you want it to be... https://community.multitheftauto.com/index.php?p= ... ils&id=124 Width and depth depend on you.. weather you want it to be huge or small... You decide.
DutchCaffeine Posted January 9, 2010 Author Posted January 9, 2010 Ho ho, i don't make a joke out of you. I never will. Lets get it more complicated. I've made a rectangle in photoshop: There are 5 points there: 1. left top 2. right top 3. left bottom 4. right bottom 5. center Now, i want to know at what point i need to get x and the y. And how to math the width and depth. I hope that explains some more about my question.
DutchCaffeine Posted January 9, 2010 Author Posted January 9, 2010 Ho ho, i don't make a joke out of you. I never will. Lets get it more complicated. I've made a rectangle in photoshop: There are 5 points there: 1. left top 2. right top 3. left bottom 4. right bottom 5. center Now, i want to know at what point i need to get x and the y. And how to math the width and depth. I hope that explains some more about my question.
50p Posted January 9, 2010 Posted January 9, 2010 As you said #"3. left bottom" (south-west -> X, Y). Width is distance between #3 and #4, depth is distance between #3 and #1 (or the other way around). What do you want to calculate?
50p Posted January 9, 2010 Posted January 9, 2010 As you said #"3. left bottom" (south-west -> X, Y). Width is distance between #3 and #4, depth is distance between #3 and #1 (or the other way around). What do you want to calculate?
DutchCaffeine Posted January 9, 2010 Author Posted January 9, 2010 As you said #"3. left bottom" (south-west -> X, Y). Width is distance between #3 and #4, depth is distance between #3 and #1 (or the other way around).What do you want to calculate? If i read good: from position 3 i need to get the x coord from position 4 i need to get the y coord and from 3 to (x coord) 1 i can calculate the depth and from 3 to 4 i can calculate the width Am i right?
DutchCaffeine Posted January 9, 2010 Author Posted January 9, 2010 As you said #"3. left bottom" (south-west -> X, Y). Width is distance between #3 and #4, depth is distance between #3 and #1 (or the other way around).What do you want to calculate? If i read good: from position 3 i need to get the x coord from position 4 i need to get the y coord and from 3 to (x coord) 1 i can calculate the depth and from 3 to 4 i can calculate the width Am i right?
50p Posted January 9, 2010 Posted January 9, 2010 As you said #"3. left bottom" (south-west -> X, Y). Width is distance between #3 and #4, depth is distance between #3 and #1 (or the other way around).What do you want to calculate? If i read good: from position 3 i need to get the x coord from position 4 i need to get the y coord and from 3 to (x coord) 1 i can calculate the depth and from 3 to 4 i can calculate the width Am i right? Of course you're wrong Read it again. TIP: A point has a location (x, y).
50p Posted January 9, 2010 Posted January 9, 2010 As you said #"3. left bottom" (south-west -> X, Y). Width is distance between #3 and #4, depth is distance between #3 and #1 (or the other way around).What do you want to calculate? If i read good: from position 3 i need to get the x coord from position 4 i need to get the y coord and from 3 to (x coord) 1 i can calculate the depth and from 3 to 4 i can calculate the width Am i right? Of course you're wrong Read it again. TIP: A point has a location (x, y).
DutchCaffeine Posted January 9, 2010 Author Posted January 9, 2010 Ahh, i think i got the point. So i go to point #3 save the coords, that are the x and y coords. Then i go from point #3 to #4 and then get the distance with the function getDistanceBetweenPoints2D that is the width. Then i go from point #3 to #1 and with the same function i get the depth. Am i right now?
DutchCaffeine Posted January 9, 2010 Author Posted January 9, 2010 Ahh, i think i got the point. So i go to point #3 save the coords, that are the x and y coords. Then i go from point #3 to #4 and then get the distance with the function getDistanceBetweenPoints2D that is the width. Then i go from point #3 to #1 and with the same function i get the depth. Am i right now?
50p Posted January 9, 2010 Posted January 9, 2010 Ahh, i think i got the point.So i go to point #3 save the coords, that are the x and y coords. Then i go from point #3 to #4 and then get the distance with the function getDistanceBetweenPoints2D that is the width. Then i go from point #3 to #1 and with the same function i get the depth. Am i right now? Sort of. You don't have to use getDistanceBetweenPoints2D because you can't rotate colshapes, so rectangle has always straight line along X and Y axis.
50p Posted January 9, 2010 Posted January 9, 2010 Ahh, i think i got the point.So i go to point #3 save the coords, that are the x and y coords. Then i go from point #3 to #4 and then get the distance with the function getDistanceBetweenPoints2D that is the width. Then i go from point #3 to #1 and with the same function i get the depth. Am i right now? Sort of. You don't have to use getDistanceBetweenPoints2D because you can't rotate colshapes, so rectangle has always straight line along X and Y axis.
DutchCaffeine Posted January 9, 2010 Author Posted January 9, 2010 to create them, can use a radar area to create them? Because those spares are invisible.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now