Implementing a scissor model using constraints
Posted: Sun Nov 03, 2019 11:42 am
Dear All,
I am building a surgery scissor simulator. I have implemented a scissor using bullet physics. Basically this scissor is consist of 4 meshes 1) base, 2) connector, 3) left tip and 4) right tip. Scissor can move left or right or top or bottom. Also both tip can open and close. So, I have a hinge constraint between base and connector and implemented two other hinge constraints(using generic6DOFConstraints) between left tip and connector, right tip and connector. I am manipulating scissor tip position using a touch 3D device and constraint shall apply inverse kinematics to move to position. All meshes dynamic rigid body. My problem is when I move the tip slowly it is somewhat working but when I move tip very fast, constraints and rigid bodies are falling apart. Both code and video are attached. I checked RoggDoll implementation and my implementation is very similar. But don't know why it is not behaving same. Any help would be greatly appreciated.
Below is the dropbox link for the video :
https://www.dropbox.com/sh/rcsltxk08101 ... z6W6a?dl=0
I am building a surgery scissor simulator. I have implemented a scissor using bullet physics. Basically this scissor is consist of 4 meshes 1) base, 2) connector, 3) left tip and 4) right tip. Scissor can move left or right or top or bottom. Also both tip can open and close. So, I have a hinge constraint between base and connector and implemented two other hinge constraints(using generic6DOFConstraints) between left tip and connector, right tip and connector. I am manipulating scissor tip position using a touch 3D device and constraint shall apply inverse kinematics to move to position. All meshes dynamic rigid body. My problem is when I move the tip slowly it is somewhat working but when I move tip very fast, constraints and rigid bodies are falling apart. Both code and video are attached. I checked RoggDoll implementation and my implementation is very similar. But don't know why it is not behaving same. Any help would be greatly appreciated.
Below is the dropbox link for the video :
https://www.dropbox.com/sh/rcsltxk08101 ... z6W6a?dl=0