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 / Help With Physics

Author
Message
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 21st Jan 2007 22:28
I am working on a third person game but im having some problem with the character physics. When the character is on a slope that is too steep, he is supposed to slide down it, but when the character is on a corner, it reads the the closest point to it in terms of the y axis and slides down to that height even if there is no ground there. Im not sure why it does this only on corners but it is a major problem. This pushes the character through the floor so I was wondering if anyone had some suggestions for fixing it. The main physics script is under the ramp: tag.

Attachments

Login to view attachments
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Jan 2007 01:30
For a cheap simple fix:
if playerY < floorY then playerY = floorY

Login to post a reply

Server time is: 2025-05-27 19:11:20
Your offset time is: 2025-05-27 19:11:20