"Hard" attaching soft body node to a rigid body.
Posted: Fri Oct 17, 2014 12:33 pm
Hello everyone,
I've having some head ache with this trouble. I want to simulate the physic behaviour of a character inside my game.
I'm using Ogre + Bullet with my own wrapper, taking some ideas from btOgre.
Right now, I'm trying to make a cloak simulated with a SoftBody. I achieved to create the SoftBody from an Ogre mesh and now I'm just trying to attach it to the character's shoulders. I did this:
Where, obviously the m_bodies array is where I store the rigid bodies.
But with this approach my cloak is like attached to two ropes that are attached to the rigid body at some distance. So the SofBody flies around the character.
Is there any way to attach the vertex of the SoftBody to a vertex of the RigidBody in such way that the SoftBody vertex moves instantly with the RigidBody?
Thanks in advance.
I've having some head ache with this trouble. I want to simulate the physic behaviour of a character inside my game.
I'm using Ogre + Bullet with my own wrapper, taking some ideas from btOgre.
Right now, I'm trying to make a cloak simulated with a SoftBody. I achieved to create the SoftBody from an Ogre mesh and now I'm just trying to attach it to the character's shoulders. I did this:
Code: Select all
mCloakBody->appendAnchor(0, m_bodies[BODYPART_LEFT_SHEATH]);
mCloakBody->appendAnchor(100, m_bodies[BODYPART_LEFT_SHEATH]);
But with this approach my cloak is like attached to two ropes that are attached to the rigid body at some distance. So the SofBody flies around the character.
Is there any way to attach the vertex of the SoftBody to a vertex of the RigidBody in such way that the SoftBody vertex moves instantly with the RigidBody?
Thanks in advance.