simple pendulum sticks
simple pendulum sticks
I have modified the ragdoll demo so that a single capsule is hinged using a balljoint at one end to a fixed point above the ground. It works fine except that when the rod is held and released a little off the vertical it sticks and very slowly slips back to vertical. I've tried changing all friction/damping settings but I can't prevent this sticking. Any suggestions please?
Re: simple pendulum sticks
No promises, but you can start by providing the source for repro .
Re: simple pendulum sticks
Source is attached. The pendulum setup starts around line 20 in swing.cpp
Thanks
Supernewb
Thanks
Supernewb
- Attachments
-
- swing.zip
- (4.96 KiB) Downloaded 500 times
Re: simple pendulum sticks
Anyone seeing the same problem I'm seeing?
Re: simple pendulum sticks
I see this: https://dl.dropbox.com/u/39695680/swing.avi
Are we supposed to modify the code anyhow for something evil to happen? Or is it the way the pendulum finally stabilizes that you find awkwardly looking?
Are we supposed to modify the code anyhow for something evil to happen? Or is it the way the pendulum finally stabilizes that you find awkwardly looking?
Re: simple pendulum sticks
Hi, thanks for the post. I get different behaviour! - the capsules stick at a much earlier point, when they are at the maximum reach of a swing. Could this be a machine issue? I'm on dual boot I'll swap into windows on mac later.
Re: simple pendulum sticks
https://www.dropbox.com/s/m0svuf30ztny2fz/swing_SN.avi
see how the stick on the right gets stuck then slowly slips down.
I'm using bullet-2.81-rev2613 / vs2010 / Windows 7 on a macbook pro
@kalesony : You can't get it to stick at all?
see how the stick on the right gets stuck then slowly slips down.
I'm using bullet-2.81-rev2613 / vs2010 / Windows 7 on a macbook pro
@kalesony : You can't get it to stick at all?
Re: simple pendulum sticks
I played around and - nope, it looks nothing like yours. Have you tried different bullet releases?
Re: simple pendulum sticks
Thanks, which version do you use?
Re: simple pendulum sticks
2.80.
Will try it out with 2.81 when I have a spare minute.
Will try it out with 2.81 when I have a spare minute.
Re: simple pendulum sticks
You're right, I have the sticking issue using 2.81 and your code.
Re: simple pendulum sticks
Thanks. I guess this should be flagged as a potential issue.
- Erwin Coumans
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
- Contact:
Re: simple pendulum sticks
It seems to happen because you enable damping and additionalDamping.
If you comment out those lines, it works just fine here. Can you try it?
If you comment out those lines, it works just fine here. Can you try it?
Code: Select all
//m_body->setDamping( 0.05f, 0.85f );
//rbInfo.m_additionalDamping = true;