Page 1 of 1

Constrained Chain Transformation

Posted: Mon Jun 15, 2015 12:10 pm
by moeizle
hello,

i implemented a chain of cubes in bullet, that is cubes attached together by joints such that this chain forms a closed circle, and i fix one of these cubes.

I set up the world and the hingeconstraints between the cubes, and once i apply the gravity force, the objects move correctly. However, now i'm trying to set the transformation of just one cube in the chain, and i want the other parts to follow in a physically correct manner, for instance, if i rotate a part, i want the parts connected to it to remain connected to it, and follow this transformation.

i set the transformation of a part using rigidbody->setWorldTransform(trans), but it only sets the transform of one part, and when i step the simulation, the other parts don't move with the part i moved, its like they become disconnected, any idea how to fix this?