constrain actor to mouse, along a randomly rotated line
while i try to work this one out, ill ask for help here on the forum.
i have a line that will be placed with a random rotaion 0-360, i would like to be able to slide another actor along the line (plus and minus 125 pixels distance from the center)
i dont want the actor to have any play sideways, just along the line
i have attributes constrained for distance from center , line x and line y
i just need the math!
thanks in advance!
i have a line that will be placed with a random rotaion 0-360, i would like to be able to slide another actor along the line (plus and minus 125 pixels distance from the center)
i dont want the actor to have any play sideways, just along the line
i have attributes constrained for distance from center , line x and line y
i just need the math!
thanks in advance!
Comments