Obi Official Forum
Help Unstable chain attachment - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help Unstable chain attachment (/thread-4494.html)



Unstable chain attachment - quent_1982 - 13-05-2025

Hello, I have a chain with attached lamp to it. All hierarchy and settings below in screenshots.

Default chain with dynamic attachment to lamp works and swings well and not breaks away from the chain. But after I want to grab the lamp by using unity joints on it and just lift on the lamp or swing with player, chain starts breaking away from the lamp like in screenshot. Mass ratios between player(~5kg), lamp(1.5kg) and chain(1 kg in Obi rope script and 0.25kg on each of 3 points in Path Editor) is satisfied the condition 1 : 10. I've already tried to play with some settings, including solver iterations and anchor on joints, but it did not helped. 

Thanks. 



RE: Unstable chain attachment - josemendez - 13-05-2025

(8 hours ago)quent_1982 Wrote: Hello, I have a chain with attached lamp to it. All hierarchy and settings below in screenshots.

Default chain with dynamic attachment to lamp works and swings well and not breaks away from the chain. But after I want to grab the lamp by using unity joints on it and just lift on the lamp or swing with player, chain starts breaking away from the lamp like in screenshot. Mass ratios between player(~5kg), lamp(1.5kg) and chain(1 kg in Obi rope script and 0.25kg on each of 3 points in Path Editor) is satisfied the condition 1 : 10. I've already tried to play with some settings, including solver iterations and anchor on joints, but it did not helped. 

Thanks. 

Hi!

What are your joint settings? Joints may project rigidbodies by directly setting their position, and may alter their mass (mass scaling) during joint solves. Maybe either are affecting in your case?

Also, what’s the joint attached to besides the lamp? (World/character?) if it’s attached to the character, how are you moving the character around?

Kind regards,


RE: Unstable chain attachment - quent_1982 - 13-05-2025

(7 hours ago)josemendez Wrote: Hi!

What are your joint settings? Joints may project rigidbodies bu directly setting their position, and may alter their mass (mass scaling) during joint solves. Maybe either are affecting in your case?

Also, what’s the joint attached to besides the lamp? (World/character?) if it’s attached to the character, how are you moving the character around?

Kind regards,

My player using active ragdoll with main body mass 3.5kg and other parts about 0.2kg, all player parts use configurable joints. Character is swinging by applying torque(20N) to main body to its direction.

I`m using character joint to attach player hands to the lamp with almost default settings: mass scale is 1;1, limits on ~40, there is preprocessing and no projection.


RE: Unstable chain attachment - josemendez - 13-05-2025

(7 hours ago)quent_1982 Wrote: My player using active ragdoll with main body mass 3.5kg and other parts about 0.2kg, all player parts use configurable joints. Character is swinging by applying torque(20N) to main body to its direction.

I`m using character joint to attach player hands to the lamp with almost default settings: mass scale is 1;1, limits on ~40, there is preprocessing and no projection.

Should work fine, I've tested moving an attached object with a configurable joint using these settings but couldn't reproduce this issue. Would it be possible for you to send a project that reproduces this issue to support(at)virtualmethodstudio.com so that I can take a closer look at your setup?

kind regards,


RE: Unstable chain attachment - quent_1982 - 13-05-2025

(7 hours ago)josemendez Wrote: Should work fine, I've tested moving an attached object with a configurable joint using these settings but couldn't reproduce this issue. Would it be possible for you to send a project that reproduces this issue to support(at)virtualmethodstudio.com so that I can take a closer look at your setup?

kind regards,

Unfortunately, I`m unable to send the project due to my obligations at work.
Is there other way to provide you some info that can help you understand the problem closer?


RE: Unstable chain attachment - josemendez - 13-05-2025

(6 hours ago)quent_1982 Wrote: Unfortunately, I`m unable to send the project due to my obligations at work.
Is there other way to provide you some info that can help you understand the problem closer?

Hi!

There’s no need to send the entire project, a small project that reproduces the issue is enough. It can be a heavily stripped down version of the original project, or an entirely separate project with just the bare minimum to gets the issue to take place.

Kind regards,