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 / Collision problem

Author
Message
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 28th Mar 2009 15:39
Hey everybody. I'm having a small problem setting up a collision between sphere and a plane. Here is the main code and the collision function:
main code:

and the function collision:

Any help?

...
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 30th Mar 2009 19:18 Edited at: 30th Mar 2009 19:20
The main problem is how you setup complex object #1. You didn't set it up as group #1. Also, the computer will not recognize oldx#, oldy# and oldz# in your function. You will need to pass these values to the function or make them global.
This code works for me:




LB

Login to post a reply

Server time is: 2024-11-25 08:42:41
Your offset time is: 2024-11-25 08:42:41