DutchCaffeine Posted January 9, 2010 Share 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? Link to comment
DutchCaffeine Posted January 9, 2010 Author Share 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? Link to comment
50p Posted January 9, 2010 Share 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 Link to comment
50p Posted January 9, 2010 Share 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 Link to comment
DutchCaffeine Posted January 9, 2010 Author Share 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. Link to comment
DutchCaffeine Posted January 9, 2010 Author Share 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. Link to comment
Gamesnert Posted January 9, 2010 Share 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? Link to comment
Gamesnert Posted January 9, 2010 Share 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? Link to comment
50p Posted January 9, 2010 Share 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. Link to comment
50p Posted January 9, 2010 Share 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. Link to comment
DutchCaffeine Posted January 9, 2010 Author Share 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. Link to comment
DutchCaffeine Posted January 9, 2010 Author Share 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. Link to comment
50p Posted January 9, 2010 Share 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? Link to comment
50p Posted January 9, 2010 Share 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? Link to comment
DutchCaffeine Posted January 9, 2010 Author Share 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? Link to comment
DutchCaffeine Posted January 9, 2010 Author Share 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? Link to comment
50p Posted January 9, 2010 Share 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). Link to comment
50p Posted January 9, 2010 Share 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). Link to comment
DutchCaffeine Posted January 9, 2010 Author Share 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? Link to comment
DutchCaffeine Posted January 9, 2010 Author Share 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? Link to comment
50p Posted January 9, 2010 Share 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. Link to comment
50p Posted January 9, 2010 Share 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. Link to comment
DutchCaffeine Posted January 9, 2010 Author Share Posted January 9, 2010 to create them, can use a radar area to create them? Because those spares are invisible. Link to comment
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