Particle's "ghost" orbit

dimaklisdimaklis Member Posts: 4
edited May 2013 in Working with GS (Mac)
Hi everyone,

I am trying to make my first app, a "top view" game, where moving particles (with a constant, linear velocity) collide against walls and make the respective reflections.

The user's part in the game will be to draw the walls. What I would like to do is to have a "ghost" line appeared in order to help the user predict the particles' orbit.

Example: https://docs.google.com/file/d/0BzBcQPqCrxH8N1loSnh6d0JhSms/edit?usp=sharing In the image attached, the user is about to draw a wall by dragging their finger from point A to point B. They can drag their finger (along with point B) to adjust the wall angle, until they lift their finger and complete the creation of the wall. During this time (while the finger is in contact with the screen), I would like to have the dotted line appeared to represent the expected reflection of the approaching particle C at any moment.

I'm afraid this feature is very important for the game... Is there any way to do it? Any suggestions, ideas, tutorials etc?

Thank you very much

Comments

  • ORBZORBZ Member Posts: 1,304
    This can be done, but it's going to require a lot of manual work on your part. Hope your math skills are good. Bust out your sin, cos, and tan functions.
Sign In or Register to comment.