btCompoundShape performance hit (ragdoll hockey game)
Posted: Sun Nov 10, 2019 7:49 am
I'm working on a ragdoll simulation for a hockey game. Having an issue with the hockey sticks. Being an L shape, I need a way to represent the concave shape in Bullet.
Originally, I am using two separate rigidbody boxes with a btGeneric6DofConstraint constraint. Works mostly okay except in some situations the two rigidbodies can separate under stress.
Now, I'm trying to use one rigidboy using two boxes in a compound shape. The problem is that the Bullet simulation time jumps from ~1ms to >10ms, which kills the framerate.
Are compound shapes performance friendly or should I be using another representation like a mesh?
Originally, I am using two separate rigidbody boxes with a btGeneric6DofConstraint constraint. Works mostly okay except in some situations the two rigidbodies can separate under stress.
Now, I'm trying to use one rigidboy using two boxes in a compound shape. The problem is that the Bullet simulation time jumps from ~1ms to >10ms, which kills the framerate.
Are compound shapes performance friendly or should I be using another representation like a mesh?