03-05-2021, 11:05 AM
(This post was last modified: 03-05-2021, 11:09 AM by josemendez.)
(02-05-2021, 02:47 PM)Hakazaba Wrote: Hi, i want to animate the rod rest position in order to animate a rod as a creature. Is this feasable? If so, what, variables do i need to edit?
Hi,
To do this you need to iterate trough all bend/twist constraint batches in the rod and change each constraint's rest Darboux vector. (see:https://en.wikipedia.org/wiki/Darboux_vector). These are per-constraint angular velocities stored as quaternions that determine the material frame's bending/torsion, it's quite advanced stuff so let me know if you need further help.
Also, this paper (included in Obi's webpage references section) contains good information about Cosserat theory and Darboux vectors:
https://animation.rwth-aachen.de/media/p...t-Rods.pdf
See the "Per-constraint parameters (Obi 5.6 and up)" in the scripting section of the manual to learn to change constraint data at runtime:
http://obi.virtualmethodstudio.com/tutor...aints.html