Constrained Chain Transformation

Show what you made with Bullet Physics SDK: Games, Demos, Integrations with a graphics engine, modeler or any other application
Post Reply
moeizle
Posts: 8
Joined: Mon Jan 05, 2015 1:47 pm

Constrained Chain Transformation

Post 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?
Post Reply