Jump to content

Simple constraint

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Markuskarlsson79 (talk | contribs) at 11:34, 21 September 2007. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

If p1 follows p0, then p1 gets its coordinates from the following set of equations:



dx = p0x - p1x
dy = p0y - p1y
l1 = <sqrt>dx2+dy2</sqrt>
p1dx = dx/l1 * r - dx
p1dy = dy/l1 * r - dy