Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with dynamic attachment
#4
(03-04-2023, 09:54 PM)Mickle Wrote: is there is a way for me to find how much is the force multiplier the rope is adding ? so like i can add the same exact amount of force to the sphere so nothing weirds happens in come cases

Hi,

You can access lagrange multipliers on a per-constraint basis, by accessing the "lambdas" array in each constraint batch. You can see an example of this in ObiRope.cs, ApplyTearing method. For information on how constraints are stored in Obi and how to access them, see: http://obi.virtualmethodstudio.com/manua...aints.html

However this is far too convoluted just for your use case imho. Clamp your force to a reasonable value, and just adjust the rope and ball masses accordingly so that the acceleration isn't huge (remember that a = F/m).

kind regards,
Reply


Messages In This Thread
problem with dynamic attachment - by Mickle - 03-04-2023, 02:26 PM
RE: problem with dynamic attachment - by Mickle - 03-04-2023, 09:54 PM
RE: problem with dynamic attachment - by josemendez - 04-04-2023, 09:09 AM