Particle's "ghost" orbit
dimaklis
Member Posts: 4
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 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
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 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