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
50p Posted January 9, 2010 Share Posted January 9, 2010 You can do whatever you want to... you can even use dxDrawLine3D to make boundaries, dxDrawImage to show points in corners or markers... Do whatever you think suites you. Link to comment
50p Posted January 9, 2010 Share Posted January 9, 2010 You can do whatever you want to... you can even use dxDrawLine3D to make boundaries, dxDrawImage to show points in corners or markers... Do whatever you think suites you. Link to comment
subenji99 Posted January 10, 2010 Share Posted January 10, 2010 I can't believe you cannot do basic rectangle coordinate maths. As 50p said, the x,y settings you feed in are your point #3 world co-ordinates. Let's call them 100,200. Then get the other extreme co-ordinates, point #2. I'll name them x2 and y2. Let's say they come out as 400,700. to get width, it's as simple as x2 - x (300). To get depth, y2 - y (500). Giving you: myCol = createColRectangle ( 100.0, 200.0, 300.0, 500.0 ) or local x, y, x2, y2 = 100.0, 200.0, 400.0, 700.0 myCol = createColRectangle ( x, y, x2 - x, y2 - y ) Link to comment
subenji99 Posted January 10, 2010 Share Posted January 10, 2010 I can't believe you cannot do basic rectangle coordinate maths. As 50p said, the x,y settings you feed in are your point #3 world co-ordinates. Let's call them 100,200. Then get the other extreme co-ordinates, point #2. I'll name them x2 and y2. Let's say they come out as 400,700. to get width, it's as simple as x2 - x (300). To get depth, y2 - y (500). Giving you: myCol = createColRectangle ( 100.0, 200.0, 300.0, 500.0 ) or local x, y, x2, y2 = 100.0, 200.0, 400.0, 700.0 myCol = createColRectangle ( x, y, x2 - x, y2 - y ) Link to comment
eAi Posted January 10, 2010 Share Posted January 10, 2010 This is the kind of stuff you're taught when you're about 8 or 9, you really should know it. Link to comment
eAi Posted January 10, 2010 Share Posted January 10, 2010 This is the kind of stuff you're taught when you're about 8 or 9, you really should know it. Link to comment
DutchCaffeine Posted January 10, 2010 Author Share Posted January 10, 2010 This is the kind of stuff you're taught when you're about 8 or 9, you really should know it. Uhm yes, but i was never good in mathematic. It is a weak point in me. Link to comment
DutchCaffeine Posted January 10, 2010 Author Share Posted January 10, 2010 This is the kind of stuff you're taught when you're about 8 or 9, you really should know it. Uhm yes, but i was never good in mathematic. It is a weak point in me. Link to comment
Lordy Posted January 12, 2010 Share Posted January 12, 2010 You can't really do any scripting without math tbh Link to comment
Lordy Posted January 12, 2010 Share Posted January 12, 2010 You can't really do any scripting without math tbh 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