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.

Newcomers DBPro Corner / Walking on boxes?

Author
Message
CeeJay
21
Years of Service
User Offline
Joined: 2nd Feb 2003
Location:
Posted: 3rd Feb 2003 06:43
i have looked through a lot of tutorials on collision detection and saw a lot of different techniques. which is why i have come to ask this: how would i be able to make a character walk on top of boxes? i don't want to use a matrix cuz i'm trying to test the character walking on boxes so that they will be able to walk on a square platform i have modeled. thanks ahead of time.

-CJ
CeeJay
21
Years of Service
User Offline
Joined: 2nd Feb 2003
Location:
Posted: 3rd Feb 2003 17:50
i tried to do it using "object height y" to get the height of the box but DB pro pops out and error. I know this is a really basic question, but I haven't figirued it out exactly. Shouldn't be if you turn on collisions for a box (platform) and a sphere (player) the spere would not pass through the box but would continue to move (Z and X) with the arrows?

QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 3rd Feb 2003 22:13
I would reccomend using sliding collision. (Help > examples> sliding collision). Basically you need to use the collision detection code there, and the gravity code there (which are very simple), put a collision box on the character, and put a collision box on your object.
Make object collision box Object#,Half object X,Half object Y, Half object Z, -Half object X, -Half object Y, -Half object Z,0

all the - are negative signs, the stuff after is values. And do that for the character. Hope that helps.
CeeJay
21
Years of Service
User Offline
Joined: 2nd Feb 2003
Location:
Posted: 7th Feb 2003 18:31
thanks...i'll play around with that.

Login to post a reply

Server time is: 2024-11-23 23:48:15
Your offset time is: 2024-11-23 23:48:15