plinky prob

Blitz3D Forums/Blitz3D Programming/plinky prob

Rook Zimbabwe(Posted 2005) [#1]
I am having a prob with my plink game:

I can't get the ball to bounce off the pegs!

Thus us my source code


And the link for all the B3D goodies is here:
http://www.silverimports.com/blitz/

I need some help!

-RZ


Rook Zimbabwe(Posted 2005) [#2]
Well I know some of you out there have downloaded the b3D goodies... No one has any ideas either? I figure I am just not calling the TAN correctly... Now if I could just figure out the bounce as well...
-RZ


TomToad(Posted 2005) [#3]
I haven't tried your code yet, but just a thought. ATan2 returns angles from -180 to 180 instead of 0 to 360. 0 points positive x, 180/-180 points negative x, 90 points positive y, -90 points negative y.


Rook Zimbabwe(Posted 2005) [#4]
Well that could be it. I also may have to lay the board down FLAT instead of rotating it 20 degrees. Working towards a OXYD game idea.

-RZ