#How to make an actor turn to the angle as it moves
1 messages · Page 1 of 1 (latest)
Let me see if I understand you want the sheep to move in the direction of the angle?
Yes,similar to how you set the main actor novement to finger direction and it goes to where it looks.If it cant work im also willing to try different methods that result on what im trying to get
cos/sin angle calculates the distance that will need to go inside a circular area, to calculate the area of that circle that number gets multiplied by any number you want it to be the area (in this case its three)
example: lest suppose the angle is 180, and for it to have a speed of 3 blocks per second
cos(180) × 3 = -3
sin(180) × 3 = 0
since the number in cos is negative, the object goes 3 blocks backwards, and since the number in sin is zero, it wont move neither up or down