monday
Expert
- Joined
- Jun 23, 2014
- Messages
- 1,127
- Solutions
- 1
- Reaction score
- 158
Hi, I'm struggling to get direction of a line made from 2 points.
For example:
00A0: store_actor $PLAYER_ACTOR position_to 0@ 1@ 2@
00A0: store_actor 31@ position_to 3@ 4@ 5@
What I need is something like:
xxxx: 6@ = vector from 0@ 1@ to 3@ 4@
xxxx: 7@ = get direction of the vector 6@
For example:
00A0: store_actor $PLAYER_ACTOR position_to 0@ 1@ 2@
00A0: store_actor 31@ position_to 3@ 4@ 5@
What I need is something like:
xxxx: 6@ = vector from 0@ 1@ to 3@ 4@
xxxx: 7@ = get direction of the vector 6@