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.

Dark GDK / Collision using Sparky's doesn't notice that object has been moved

Author
Message
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 13th May 2009 17:55 Edited at: 13th May 2009 18:26
I have a problem with my collision/physics routine. It seems to work, but only when the ground object hasn't been moved. I have a sphere that's supposed to bounce off it and slide on it, but when I move the ground, it just seems to think it's still at (0, 0, 0).

Here is the code for the physics:


Can anyone explain the problem?

Thanks



[edit]

OK, fixed the problem. Turns out I was positioning the object after I set it up, and didn't call SC_UpdateObject().

Thanks anyways guys

Login to post a reply

Server time is: 2024-11-05 18:43:38
Your offset time is: 2024-11-05 18:43:38