OK, thanks, —
The only problem is, the object within the rectangle has an altering width for me, and I suspect that this is what is stuffing it up.
What can I do if I want to consider the second object as a point entity?
randomAngledArea.capx
What I wrote earlier works fine for me...
Develop games in your browser. Powerful, performant & highly capable.
oh, R0J0hound, I missed that in Newt's example.
All right then, I'll go with yours, especially as it seems to allow an arbitrary width for the second object.
Many thanks all.
Oh, shoot, R0J0hound's won't work for me, I want to specify a position for the object to lerp to, not just make it appear there :(
Suppose I'll just use Yann's.