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 / My Math Collision Tutorial

Author
Message
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 11th Apr 2004 03:39
I hope you will like it (and understand it, because im dutch and my english isnt perfect).

Too bad its still under construction, but it already covers the basics of the 3D space/grid, 3D movement, Collision Basics, Box Collision and Sphere/Distance Collision.

Here's a link:
http://www.geocities.com/hatesurvivor/MathColl.htm

The tutorial is full of examples and images when its finished.
Im too tired to work further (I was hoping to get it finished today, but everybody in my town is sleeping right now .. my eyes are hurting)

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 11th Apr 2004 12:50 Edited at: 11th Apr 2004 12:51
I've now added a few new chapters, take a look
I will add a new chapter every 5 hours.

New:
-Rooms
-Coordinates

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
Eternal Darkness
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Area 51
Posted: 11th Apr 2004 16:37
Nice Emperor Baal, keep up the good work

It's Not The Cards Your Dealt , It's How U Play Them
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 12th Apr 2004 23:09
I've updated it now.

Stairs, slopes and character collision.
Completely with examples and pictures

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 13th Apr 2004 13:28
Updated again.

-Multiple Floors
-Height# variable
-Gravity
-Jumping

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 13th Apr 2004 19:25
I can't see your web site

CURRENT PROJECT: RETRO PAC-MAN
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 13th Apr 2004 19:29
Yeah, I need a new host, because this one has a bandwidth limit

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: 13th Apr 2004 20:21
Normally I would offer hosting to you. Unfortunately I am not currently in a position to make that offer.

There is an optimization you could make to part of your code. The distance check you have as:



Could also be written as:



Which essentially removes the square root function altogether.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
muscles
21
Years of Service
User Offline
Joined: 12th Apr 2004
Location:
Posted: 13th Apr 2004 21:55
dude, great tutorial (i actually learned something from it! (which says a lot, since i already knew more than half of it.)(i'll have to remember that bit about ellipsoid collision))(i have a tendency to over-use parentheses) you're dutch?! understanding the tutorial wasn't a problem--your english is better than mine, and i've been speaking it my whole life! congrats, my friend
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 13th Apr 2004 22:38
@nuclear glory Thanks anyway. Btw, thanks for your optimalization. I can use it with the normal distance check too (remove sqrt() and replace distance# with distance#*distance#)

@muscles (ik ben nederlands ja ) I'm dutch and believe me, my english is far from perfect

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 14th Apr 2004 23:14
Ive updated it (again)

The Gravity and Jumping chapter are now completed.
Some minor textfont and size errors have been fixed.

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
Peter H
21
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 15th Apr 2004 01:36
sweet dude!

















Sticky time!(suggestion to mods )


Formerly known as "DarkWing Duck"

Login to post a reply

Server time is: 2025-05-30 11:53:04
Your offset time is: 2025-05-30 11:53:04