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 / Sparkys collision with moving objects

Author
Message
banjobob
17
Years of Service
User Offline
Joined: 21st Jan 2009
Location: Kentucky
Posted: 20th Nov 2011 14:53
Hi, I have searched the forums and couldn't come up with an answer for this. Basically I have a sphere I am using as the character that the camera follows. The level has a few boxes I am using to test collision. One of the boxes spins and I am trying to figure out how I would get the sphere to spin when it is on top of the box, and also to be pushed away from the box when it collides. I have tried several different methods of doing this but with no luck. Most of the code was taken from one of sharkeys demos. I would be thankful for any help.
banjobob
17
Years of Service
User Offline
Joined: 21st Jan 2009
Location: Kentucky
Posted: 22nd Nov 2011 11:55
I came up with this real quick, but it is far from being done correctly. The sphere now rotates when on top of the spinning cube. Any tips on how to set this up? Thanks

Login to post a reply

Server time is: 2026-07-10 16:33:10
Your offset time is: 2026-07-10 16:33:10