Hi everyone,
I am sorry if this question sounds so naive. I am pretty much new to Bullet.
I am simulating mass-spring system. For testing purposes, I attached two dynamic masses(which I made from sphere) with spring constraint(btGeneric6DofConstraint).
Problem is: When I disabled gravity and run the simulation, then these two masses rotates in a circular motion. Inspite of that, it's not likely the behaviour should be. According to Physics, these objects should be in rest as none of the force is acting on them.
On the contrary, when I enabled gravity, mass-spring system worked perfect. It is dropping on the ground with same acceleration.
What am I doing wrong??
Note: I didnt use btRigidBody* mass = localCreateRigidBody(params) for initialization of masses. Instead of that i used btRigidBody* mass = new btRigidBody(params)
Is this creating a difference? I tried so much stuff to remove this instability but couldn't succeed!
Instability in Mass Spring System
-
- Posts: 1
- Joined: Thu Oct 17, 2013 11:16 pm
Instability in Mass Spring System
You do not have the required permissions to view the files attached to this post.
-
- Posts: 463
- Joined: Fri Nov 30, 2012 4:50 am
Re: Instability in Mass Spring System
When in doubt, increase simulation frequency and constraint iteration count. It's probably just a solver artifact (since it's not a direct solver), so it should work itself out if the errors are made small enough