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 / How can I get math collision with the camera?

Author
Message
Dr Crazy
21
Years of Service
User Offline
Joined: 13th Apr 2004
Location:
Posted: 22nd May 2004 20:17 Edited at: 22nd May 2004 20:24
I'm trying to make math collision instead of object collision (because object collision eats up most of your FPS() ) with the camera but!...my code wont work!

What I mean by 'wont work' is it doesn't detect the math collision.
Could someone help me plz plz plz!
Cheers,
Nick.

Who dares; wins.
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 22nd May 2004 22:03
You could use our collision plugin. It's not an FPS monster.

Site at: http://www.nuclearglory.com

According to your code, the camera would have to be in the "exact" same position as the object for the hit to register. With moving objects it would be incredibly difficult to make them be in the same position "exactly". If they're in the same position though, then they're already overlapping so you essentially wouldn't have collision at all.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Lightwave Scene Exporter to .X also at: http://www.nuclearglory.com
Dr Crazy
21
Years of Service
User Offline
Joined: 13th Apr 2004
Location:
Posted: 22nd May 2004 22:20
Whoa! Is that the NGCollision thing coz if it is I aint paying nuttin (soz nuclear glory) coz my pockets r empty.

Who dares; wins.
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 23rd May 2004 00:41 Edited at: 23rd May 2004 00:42
Yes, it's the NGCollision plugin. There is a free 1.50 version from our site as well, although it's not as powerful.

Page at: http://www.nuclearglory.com/download.php

All the best.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Lightwave Scene Exporter to .X also at: http://www.nuclearglory.com
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 23rd May 2004 01:35
Ive made a Math Collision tutorial.

http://www.geocities.com/hatesurvivor/MathColl.htm

This link will change soon, as I got a new host

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
Dr Crazy
21
Years of Service
User Offline
Joined: 13th Apr 2004
Location:
Posted: 23rd May 2004 11:58
I've already read the Math Coll Tutuorial. It's good collision but I need collision for moving objects.

Who dares; wins.
Dr Crazy
21
Years of Service
User Offline
Joined: 13th Apr 2004
Location:
Posted: 23rd May 2004 11:59 Edited at: 23rd May 2004 12:10
O yeah Nuclear Glory, does your collision DLL require complex coding?>>
Btw, is it royalty free? Can I use it how I like (not sell it but use it in my program)

Who dares; wins.
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 23rd May 2004 14:12
Quote: "I need collision for moving objects."


Yes, our system supports moving objects.

Quote: "O yeah Nuclear Glory, does your collision DLL require complex coding?"


I don't think so. Depends on what you think is complex. It was designed to be as easy as possible without losing power and flexibility. You can download a fully-functional demo version from our website to test it out first. Then, you only pay for the commercial version if you're happy with the results.

Quote: "Btw, is it royalty free? Can I use it how I like (not sell it but use it in my program)"


Yes, it is royalty free.

If you have any other questions, feel free to ask

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Lightwave Scene Exporter to .X also at: http://www.nuclearglory.com
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 23rd May 2004 16:26
With math you can also code moving collision.

An moving platform for example?



This is just a basic idea for moving platforms
This only took me 3 minutes to code (and figure out how to do it)

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 24th May 2004 01:03
Indeed. Looking at the code, it looks like if the player was moving too fast they'd pass through the moving platform. If it was a short platform and there was a good amount of gravity on the player, then it would be problematic. Could always adjust though

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Lightwave Scene Exporter to .X also at: http://www.nuclearglory.com

Login to post a reply

Server time is: 2025-05-24 06:21:38
Your offset time is: 2025-05-24 06:21:38