animated objects and attached joints/physics
-
- Posts: 5
- Joined: Wed Sep 02, 2009 9:12 am
animated objects and attached joints/physics
Can I animate an object (setting its position/rotation every frame) which is itself not simulated/infuenced by the simulation, but attach simulated physical objects to it with a joint?
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: animated objects and attached joints/physics
Yes, you can use a kinematic object for that:
Hope this helps,
Erwin
Code: Select all
body->setCollisionFlags( body->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT);
body->setActivationState(DISABLE_DEACTIVATION);
Erwin