The Daily Click ::. Forums ::. Klik Coding Help ::. Strange Collision issue
 

Post Reply  Post Oekaki 
 

Posted By Message

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
20th November, 2012 at 20/11/2012 00:20:58 -

I'm having a problem with my game engine.

I've only just started the coding and this problem is making it quite difficult to continue with.

The game is simple, get a ball to the top of th screen as fast as possible using a rotating rod.

The rod:

____________________
I_________X_________I

The X is the point at which the rod rotates around a full 360 degrees.

The rod can only move vertically but it is possible to move in both directions on this axis.

Atop of this rod sits a Ball. I have used the PMO to control the ball movement and it works well.... to a degree.

As soon as the angle of the rod gets above 30 or 40 degrees and is then rotated in the other direction the ball falls through rod and off screen.

How can i get round this issue?

I do have an example available if no one is able to understand.

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
20th November, 2012 at 20/11/2012 00:51:07 -

This seems like exactly the sort of thing physics extensions were made for...
It might be worth posting an example, but something like this is always likely to be glitchy if you code the physics yourself IMO.

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
20th November, 2012 at 20/11/2012 03:19:16 -

This is what i have so far:

http://mfa.aquadasoft.com/view/1353381511-Balance

Left and right control the angle, up and down control the position

 
n/a
   

Post Reply



 



Advertisement

Worth A Click