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 / problem with dbObjectPositionX() function

Author
Message
Slim Pimpin
16
Years of Service
User Offline
Joined: 30th Dec 2007
Location: lost in the web
Posted: 8th Jan 2008 00:15
i am having some problems with the afore mentioned function in an automated pong game. my code is included and any help would be appreciated




Pimpin aint eazy
Pharoseer
17
Years of Service
User Offline
Joined: 21st Feb 2007
Location: Right behind you
Posted: 8th Jan 2008 08:25 Edited at: 8th Jan 2008 08:25
Holy cow! That is really messed up! What did you DO?!?!?

Just kidding Slim, but that seemed really messed up at first glance. I thought you'd found a bug! The problem is in your initial rotation. You weren't rotating far enough around the Y axis. Perspective then makes it seem like the dbPositionX() function is not working right, but actually the ball is just moving further away from the camera.

Change the line:


To this:


And you should see a difference. Hope this helps!

-Frank
Slim Pimpin
16
Years of Service
User Offline
Joined: 30th Dec 2007
Location: lost in the web
Posted: 9th Jan 2008 01:42
that was seriously pissing me off. thank you again, you are a saviour to the dummy programmer

Pimpin aint eazy
Slim Pimpin
16
Years of Service
User Offline
Joined: 30th Dec 2007
Location: lost in the web
Posted: 9th Jan 2008 03:32
ok, now that i have all of that figured out, now i have a new problem. i am having a problem with another angle related problem
the problem lies in the third collision test. the ball does not come back

here is my code



Pimpin aint eazy

Login to post a reply

Server time is: 2024-11-19 23:03:59
Your offset time is: 2024-11-19 23:03:59