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 Professional Discussion / Various height collisions

Author
Message
kamac
15
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 10th Jan 2011 22:16 Edited at: 10th Jan 2011 22:17
Hi. It's me again .

Do anyone have an idea of making good 3d collision like:



This is a sample of various terrain, and a person. As you see, person has applies gravity. Also, when he moves left,right he also moves up/down with the height. But moving right he will contact an wall. And i don't want him to be able to get on it . Anyone got a theory/sample for that? Thanks!

Cheers!

~Kamac
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 11th Jan 2011 10:39
Search for, and download sparkys collision plugin. It does exactly what you want and had example code to use.

My signature is NOT a moderator plaything! Stop changing it!
kamac
15
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 11th Jan 2011 15:03
Okay, I will . Thanks.

Cheers!

~Kamac

Login to post a reply

Server time is: 2026-07-21 15:13:39
Your offset time is: 2026-07-21 15:13:39