Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Scripting rod forces
#7
(Yesterday, 12:25 PM)Qriva0 Wrote: Well, I want it to bend, but from some defined shape and control the exact shape of the rod.
I think good example is medical endoscope - doctor can bend the tip with control handle, so default "rest" shape becomes different, however the whole thing is still a bit elastic.

Ok, so that's not plasticity after all - there's no external forces involved. You can manipulate the rest orientation of each bend/twist constraint yourself (by writing to their restDarbouxVectors array), or you can use a ObiBone which does exactly what you're looking for: it creates and drives a rod-like structure using a skeleton. This way you can just rotate the skeleton joints to the shape you want the rod to have, and it will try to follow it while performing the simulation.

(Yesterday, 12:25 PM)Qriva0 Wrote: Actually how rod keeps it's shape? Does it try to keep relative orientations always the same?

For each constraint, it measures the current darboux vector and tries to keep it the same as the rest darboux vector. If you want the nitty-gritty details, it implements this article.

kind regards,
Reply


Messages In This Thread
Scripting rod forces - by Qriva0 - 08-08-2025, 06:33 PM
RE: Scripting rod forces - by chenji - Yesterday, 03:18 AM
RE: Scripting rod forces - by josemendez - Yesterday, 08:31 AM
RE: Scripting rod forces - by Qriva0 - Yesterday, 11:14 AM
RE: Scripting rod forces - by josemendez - Yesterday, 11:26 AM
RE: Scripting rod forces - by Qriva0 - Yesterday, 12:25 PM
RE: Scripting rod forces - by josemendez - Yesterday, 12:48 PM
RE: Scripting rod forces - by Qriva0 - 11 hours ago