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 / Simple collision quesiton

Author
Message
Matija the n00b
14
Years of Service
User Offline
Joined: 2nd Aug 2010
Location: Croatia
Posted: 1st Sep 2010 12:25
Hello!
I have a question about collisions.
Whenever my player is inside the object(map), and he is not touching edges, collision acts like he is.

I usually make it something like this:


Is there a better way of making objects collide or a way to avoid that problem.
THANKS in advance!
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 1st Sep 2010 18:53
Try using SET OBJECT COLLISION TO POLYGONS on your map object.

I'd recommend using Sparky's Collision DLL (an awesome collision plugin) for 3D map collision though.


Guns, cinematics, stealth, items and more!
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 1st Sep 2010 19:10 Edited at: 1st Sep 2010 19:11
this old code snippet by g man and lost in thought is still an effective, simple and well-explained method of accomplishing basic sliding collision and provides a solid foundation to build upon.

take a look

Virtual Nomad @ California, USA . DBPro V7.5
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit
Matija the n00b
14
Years of Service
User Offline
Joined: 2nd Aug 2010
Location: Croatia
Posted: 2nd Sep 2010 10:08
Hey, thanks Sixty Squares!

All I needed was such a command.
My collisions are now working just fine.

That is some good stuff in there Virtual Nomad, I'm sure it will
be helpful later in my progress.

Login to post a reply

Server time is: 2024-11-24 11:40:17
Your offset time is: 2024-11-24 11:40:17