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 / DBE Maths Library

Author
Message
thenerd
16
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 6th Apr 2009 22:32
does anyone have a copy of the DBE Maths Library? I need it for an FPS, and the original link in the Program Announcements board is broken.

hi
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 6th Apr 2009 23:16
What exactly do you need?

That's what they WANT you to think...
thenerd
16
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 7th Apr 2009 01:41
I am making an FPS, and I need an Intersect Object function for DBC. The Maths Library had one, but I never got the dll.

sorry, but I can't find the old post with the original link...
but I know it's somewhere within the Progam Announcements board.

hi
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Apr 2009 01:51
What do you need that for? can't you just use collisions?
sorry I haven't seen it, have you tried the google forum search?

can't read?
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 7th Apr 2009 02:08
Quote: "I am making an FPS, and I need an Intersect Object function for DBC. The Maths Library had one, but I never got the dll."

Sounds a bit like sparky's collision DLL:

Sparky

Enjoy your day.
thenerd
16
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 7th Apr 2009 03:21
Obese,

The DBC built-in collisions stink, and its almost impossible to do sliding collision.

Latch,
I never got how to do collision with Sparky's dll.
Also, this dll is supposed to be faster.

hi
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 7th Apr 2009 03:38
Sparky's is pretty darn fast.

For sparky's, the first thing to do is setup your object(s)



once that's done, In your loop, you cast rays in different directions and see if there is any collision with the object that you set up:



The oldx oldy oldz is the start of the ray position. The x y and z is the end of the ray. If an object falls between the start and end and it is set for detection, then a collision will be flagged.

That's basically it.

Enjoy your day.
thenerd
16
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 7th Apr 2009 23:50
thanks. I'll try that.

hi

Login to post a reply

Server time is: 2025-08-08 20:42:34
Your offset time is: 2025-08-08 20:42:34