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 / Universal collision.

Author
Message
Zeus
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 15th Mar 2010 00:42
I have objects that users create in my game I am working on and I have a problem. A user has created an object and then created another object. I need to know how to set collision for every object a user makes so they can not place objects on top of each other. Any ideas/code?

Thanks!
Zeus

SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 15th Mar 2010 09:49 Edited at: 15th Mar 2010 09:49
What collision system are you using? Any?

is it just boxes?
maby run a test to see if an object is inside the other and if so.... move it or remove it.

You can always check a span length across x,y,z and see if there is an object in the designated area.... if so move it or remove it.

Development & Editting
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 15th Mar 2010 20:22
search: collision and you probably will find what you need.

Where there is a will, there is a way.
I often edit my posts, that`s who i am
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Mar 2010 22:27

Login to post a reply

Server time is: 2026-07-26 23:40:46
Your offset time is: 2026-07-26 23:40:46