I have a class called Bullet in a sort of birds eye view shooter game. I used to run it simply so that it moved based on an inputted direction, which could only be north south east or west. I 开发者_开
Well I have several images of plans that, every time we open the application, are created at a random position. What I want, is that every time a plan is created, his nose is oriented to the center of
In my iPhone app, suppose I have the coordinates of the current location. I want to know the coordinates of a point 10km from here, and 30° North 开发者_开发知识库East for example. How do I calculate
I am making a game in Cocos2d. I have a ball that will be shot at a flat surface (the top of the screen) how can I make it so the ball will travel, hit the surface, then reflect the angle and travel t
Im not sure if this clear enough to describe the problem... I have 2 different points, S开发者_运维百科tart -> End then it forms a Line.
I have a need to calculate the adjacent angle of a right angle triangle formed by a rectangle that is dictated by two sets of points. My plan is to use offset() on two elements to get absolute positio
I want to find an angle between two known geolocations.Basically what I want is, I want to direct an arrow whose tail point is at my current location and arrow head is pointing towards a fixed geoloca
with my first game I have a doodle I control with the accelerometer. In many games I\'ve seen that when the device is titled the object (in my case a doodle fish) rotate towards the tilt so it gives a
Hey guys, I just finished my app with Corona SDK and thought I\'d try to make my first game. As my first app was learning about the accelerometer I thought my game should be with that too.
I have an angle in the form of a unit vector. I need to be able to change this angle. Say the angle of the vector V = (x,y) is currently A. How would I go 开发者_Python百科about changing the angle to