a lot of constraint connected together -> explode

Post Reply
hyyou
Posts: 61
Joined: Wed Mar 16, 2016 10:11 am

a lot of constraint connected together -> explode

Post by hyyou » Tue Apr 18, 2017 2:54 am

I have created many bodies with equal mass + constraint like this :-
Image
^ Image shows 401 chunk of body. 400 bodies are constraint-ed with a single body at the center.
All bodies has equal mass.

When I change the hook position e.g.

Code: Select all

bulletFixedConstraint->getFrameOffsetA().setOrigin(vec3(30, 0, 0));
, every body will start shaking and will explode (spring-like + divergence).

How to workaround? I am using btCompoundShape instead (it is ok but far harder to use).
Does the shiny cutting-edge multi-body (https://github.com/bulletphysics/bullet3/releases) designed to solve it?

Post Reply