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.

3 Dimensional Chat / Stuckness (Collision Problem)

Author
Message
Manticore Night
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 9th Mar 2004 05:24 Edited at: 9th Mar 2004 05:25
I'm trying to make an rpg/adventure/timing game. TRYING is the main word here. When my caracter walks into a building in the town(one big object that is using polygon collision) and the caracter is using whatever set global collision does. Here's the code
The problem is that the buildings are partialy hollow and when my character smacks into them. Ack! She's stuck inside the building. Please help set free the poor character. YOU can make a difference.

It's amazing how much TV has raised us. (Bart Simpson)
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 9th Mar 2004 06:36
It looks like you're just moving the character backward when they hit something, this can cause some pretty creepy results. What if they're facing sideways? They'll keep colliding with the wall and the program will keep pushing them back, but maybe it won't because it knows you don't want them inside the wall, but it doesn't know exactly what you want.

I always find that if you portray the computer as a sentient, but ignorant, being not only is it more satisfying you can solve problems easier.

Check out the object collision x/y/z() commands, they contain sliding data which you can use to move the object away from the thing it's colliding with.

Crazy Donut Productions
Current Project: KillZone
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 9th Mar 2004 13:40 Edited at: 9th Mar 2004 13:40
And also look at our collision DLL. It is designed just for you! (holds up Uncle Sam poster)

Our site at: http://www.nuclearglory.com

It will handle your complex scenes very nicely.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Manticore Night
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 9th Mar 2004 22:00
Sorry Nuclear Glory, but, well I'm cheap (the exteme meaning of the word).

It's amazing how much TV has raised us. (Bart Simpson)
Manticore Night
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 10th Mar 2004 02:36
Well I tried Bear Crazy Donut Productions 's Idea but it keeps saying that GET OBJECT COLLISION X() expects no paratmers. How will it tell which object to get the data from. This is my third progamming language and it's really different(that's why I keep forgeting about those funny commands that do stuff for you(that's also why I don't understand them ))

It's amazing how much TV has raised us. (Bart Simpson)
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 10th Mar 2004 04:00
Well if $15 is too much for you then your in trouble when your introduced to taxes/car payments for sure!

Might want to make a cube based object that you can hide and use box collision for,,or hardcode your own 'intersect object' based collision system. Kentaree released something in the code snippets area that might help you.

Still think you should try to get that $15 for NG...


We need help! Email us! [email protected]
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 10th Mar 2004 10:54
or...you can break your building in to boxy objects like walls, flors and ceelings (depend on your project if it would make sense...)
Then turn collision for each separately (box collision of course, not polygoon ...that would compensate for more objects in collision check, so you should get the same or even faster collisions)

Login to post a reply

Server time is: 2025-06-28 21:44:01
Your offset time is: 2025-06-28 21:44:01