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 / Sparky's - help with radius or second collision to object

Author
Message
Sph!nx
17
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 9th Jan 2015 16:37
Hey everybody,

I know this should not be that hard, but for some reason I cannot get it to work. I wish to have a different Y radius than the X,Z radius.

I tried many things in the code, even tried to combine two collision boxes for one character but I\'m lost. When playing around with the radius, weird things happen and adding a second object, with collision that moves, it not so hard, but I\'m clueless on how to add the second object to the collision code.

Here is my current code (based on the demo):


Anyone can help me with a different Y radius or how to add a second collision object?

Thanks in advanced.

Regards Sph!nx
Sph!nx
17
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 12th Jan 2015 14:56
Solved!

I found a few examples that use Sparky's. One of the minecraft-clone examples posted on this forum got exactly what I needed.

Regards Sph!nx

Login to post a reply

Server time is: 2026-07-05 10:49:25
Your offset time is: 2026-07-05 10:49:25