[ODE] constrain to bézier curve

Daniel Holth dholth at fastmail.fm
Wed Dec 15 16:32:07 MST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aha!

All one has to do is, for each time step, constrain the object to a line
tangent to the curve at the closest point on that curve. Eventually do
the same for the object's orientation, but that is not quite as important.

And then, pull the object towards that closest point to correct the
inevitable error. I'm not yet sure how this is supposed to work; I could
set the object to the closest point, create the slider joint, move it
back, and let ODE's error correction do the rest, or could try to do it
with connected slider joints where a slider joint perpendicular to the
line had limits and forces pulling the object back into the curve.

I've got the first part working with slider joints. No, that is not my
final bézier closest-point code. My example code is Python code at
http://dingoskidneys.com/~dholth/bezier/bezier.zip

- - Daniel Holth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBwK1WVh4W2pVfoMsRAp0gAKDllXEMXKV0NkVzmkoBZaZwQeRd0wCgmGH9
uWjYhs50QLXwnfgkMhMyojs=
=Yqtl
-----END PGP SIGNATURE-----


More information about the ODE mailing list