I have a bit of a weird problem. I ALMOST have it working how I want it, but my lack of math skills are making it quite difficult. Anyway, I have a glass surface with a curved perspective image. It's almost impossible to explain, so I made an example of what I want to have happen (attached in MX 2004 format). Here's what I have on the reflected cursor MC:
Right now, the reflection of the cursor is acting as if it is a triangular, cornered wall behind it rather than a curved one. Obviously this is because I'm taking the absolute value rather than squaring a value (simple algebra, right?) Referring to the attached example, how do I make the reflected cursor follow the red CIRCULAR (parabolic) path instead of the purple triangular path? I can't find the right equation for that parabola for the life of me... PLEASE help, I'd really appreciate it! Thank you!
The problem is that your curve is actually an arc, not a parabola so it can't match up perfectly.
You can see that the yDivide equation would look like this algebraically:
y = (x-505)^2/2100+527
A good rule of thumb for all equations in y-intercept is that a number grouped with the x (-505) will move the parent function (y=x^2) that many units to the left, or negative units in this case. A number on the outside (527) will move the line up that many units (but computers use an inverted y axis so positive numbers actually go down). The division by 2100 just makes the parabola wider and I just guessed at it.