U
Undead Hero
Guest
Hey guys. Math is the big thing I have trouble with, which I realize makes me a pretty silly programmer.
Nonetheless. I'm trying to learn and I could use some help with a problem. I have 2 objects that I need to move simultaneously, in opposite directions.
Object A moves on the x axis in a range of -2120 to 3080, with 960 being in the center.
Object B moves in a range of 720 to 1200, again with 960 being the center.
I need Object B to move opposite to Object A, ie, when Object A.x = -2120, Object B.x = 1200, and vice versa, while they will both land on 960 together. Math comes in because they will need to match up accordingly along the entire spectrum.
Can anyone more talented with maths help me out?
Nonetheless. I'm trying to learn and I could use some help with a problem. I have 2 objects that I need to move simultaneously, in opposite directions.
Object A moves on the x axis in a range of -2120 to 3080, with 960 being in the center.
Object B moves in a range of 720 to 1200, again with 960 being the center.
I need Object B to move opposite to Object A, ie, when Object A.x = -2120, Object B.x = 1200, and vice versa, while they will both land on 960 together. Math comes in because they will need to match up accordingly along the entire spectrum.
Can anyone more talented with maths help me out?