- Joined
- Mar 28, 2016
- Messages
- 1,623
- Reaction score
- 1,440
- First Language
- French
- Primarily Uses
- RMMV
Hi
I forgot the equation to calculate a distance traveled with the angle pi
Here my context
//Picture 1 have position [x,y,angle]
P1xy = [10, 10, 0];
//Picture 2 have position with picture1 [x,y]
P2xY = [(P1xy[0]+10), (P1xy[1]+20)]
But if the angle of my picture 1 change
Which formula I will be able to use, to take into consideration, the angle distance
And picture2 follow xy of picture1 with angle distance
thanks
I forgot the equation to calculate a distance traveled with the angle pi
Here my context
//Picture 1 have position [x,y,angle]
P1xy = [10, 10, 0];
//Picture 2 have position with picture1 [x,y]
P2xY = [(P1xy[0]+10), (P1xy[1]+20)]
But if the angle of my picture 1 change
Which formula I will be able to use, to take into consideration, the angle distance
And picture2 follow xy of picture1 with angle distance
thanks
