Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Intersect Object

Author
Message
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 14th Jun 2004 15:25
How do you use this command?
I got it with the DBE Maths Library.

Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]
[img]http://www.uploadimages.net/images/331935avatar2.JPG[img]
Core
20
Years of Service
User Offline
Joined: 4th Jun 2004
Location:
Posted: 14th Jun 2004 21:28
I dont really know that much about Darkbasic,
but maybe you could tell me how to load a GDB Matrix into Darkbasic 1.13 Enhanced?

Nobody has a name...
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 15th Jun 2004 03:36 Edited at: 15th Jun 2004 03:37
Core, shut up with the GDB matrix thing. So far, I've found two threads started by you on this already, and Im willing to bet you've made more elsewhere. Keep this up, and the mods won't like you very much.

As for the command, I'm not sure. Where's that math library at that you got it from, I'll take a look. If it's anything like DBP's intersect object, then I could tell ya how to use it.

"eureka" - Archimedes
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 16th Jun 2004 17:20
O.K.
This is the first thread I've posted about this.
The maths library is at the top of the program announcements forum.
The command is:
intersect object(x1#,y1#,z1#,x2#,y2#,z2#)

Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]
[img]http://www.uploadimages.net/images/331935avatar2.JPG[img]
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 17th Jun 2004 03:10
I take it that it checks against all objects then?

"eureka" - Archimedes
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 21st Jun 2004 00:10
Sorry!
intersect object(id,x1#,y1#,z1#,x2#,y2#,z2#)

Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]
[img]http://www.uploadimages.net/images/331935avatar2.JPG[img]
Hamish McHaggis
22
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 23rd Jun 2004 18:55
Yeah, did you get this off of LLRGT? Basically 'id' is the id of the object you are testing for collision with, (x1#,y1#,z1#) is the first point of the line, and (x2#,y2#,z2#) is the second point of the line. The command then returns the direct distance between the first point and the nearest point of intersection, if the line intersects any polygons. Otherwise it returns 0.

Athelon XP 1600+/Radeon 9600 Pro/256 RAM
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 24th Jun 2004 12:34
Thanks!

Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]
[img]http://www.uploadimages.net/images/331935avatar2.JPG[img]

Login to post a reply

Server time is: 2025-05-24 13:17:13
Your offset time is: 2025-05-24 13:17:13