Whats the "best" approach if I want to reposition an object that consists of many rigid bodies with constraints? Like a ragdoll or an articulated vehicle.
I guess I have to reposition/transform all rigid bodys making up the object.
Repositioning (articulated) rigid body.
-
- Posts: 7
- Joined: Mon Oct 04, 2010 5:54 pm
Re: Repositioning (articulated) rigid body.
Forgot to mention, I'm not talking about moving a character from user input, more like reposition objects for example reseting the scene or updating position for an object from an server correction in a client/server enviroment.
-
- Posts: 463
- Joined: Fri Nov 30, 2012 4:50 am
Re: Repositioning (articulated) rigid body.
I'de suggest looking at the source code, specifically DemoApplication::clientResetScene() in OpenGL folder. That's how the demos reset the scene, so perhaps you'll find what you need inside that.
-
- Posts: 7
- Joined: Mon Oct 04, 2010 5:54 pm
Re: Repositioning (articulated) rigid body.
Thanks for answering! Though I've checked the function, its just:
exitPhysics();
initPhysics();
So its not really a repositioning of objects, more like a restart.
exitPhysics();
initPhysics();
So its not really a repositioning of objects, more like a restart.
-
- Posts: 463
- Joined: Fri Nov 30, 2012 4:50 am
Re: Repositioning (articulated) rigid body.
Really? Last I remember it had a bit moreApat wrote:Thanks for answering! Though I've checked the function, its just:
exitPhysics();
initPhysics();
So its not really a repositioning of objects, more like a restart.

-
- Posts: 7
- Joined: Mon Oct 04, 2010 5:54 pm
Re: Repositioning (articulated) rigid body.
Hmm what the frack! I'm not sure what I looked at now
setCenterOfMassTransform seems like a thing to try out.
Thanks allot!

setCenterOfMassTransform seems like a thing to try out.
Thanks allot!