I'm working on a 3D games that has white and black colored balls. Player will mouse down on a ball and while he holds the mouse down he can move the ball and the object is to get the ball from it's stationary position to one of many poles that appear on a 3D matrix, like some poles appear to be very close to the player and others appear to be far away in the distance.
What I would to do is as the ball(s) move to the back and to the front show them as different sizes progressively getting either smaller (as they move towards the back) and progressively getting larger as they move towards the front.
Right now I see two problems:
1) How to make the balls progressively smaller/larger as they move
2) How to determine if they are moving towards the back or front. If user mouse down on a ball and move it how do I know he is moving it, let's say, to the back as opposed to just horizontal or vertical. What could tell me this?
What I would to do is as the ball(s) move to the back and to the front show them as different sizes progressively getting either smaller (as they move towards the back) and progressively getting larger as they move towards the front.
Right now I see two problems:
1) How to make the balls progressively smaller/larger as they move
2) How to determine if they are moving towards the back or front. If user mouse down on a ball and move it how do I know he is moving it, let's say, to the back as opposed to just horizontal or vertical. What could tell me this?