Search found 28 matches: setPose

Searched query: setpose

by Dox
Thu May 16, 2019 9:14 am
Forum: General Bullet Physics Support and Feedback
Topic: SoftBody: modeling a rope from trimesh
Replies: 6
Views: 242

SoftBody: modeling a rope from trimesh

... psb->scale(btVector3(6, 6, 6)); psb->setTotalMass(1, true); psb->setMass(0, 0); psb->setMass(psb->m_nodes.size()-1, 0); psb->setPose(false, true); pdemo->getSoftDynamicsWorld()->addSoftBody(psb); } Basically, I can see the cylinder that is anchored on the first and last node, ...
by m_iDev_792
Sat Apr 13, 2019 4:40 am
Forum: General Bullet Physics Support and Feedback
Topic: Petal simulation
Replies: 5
Views: 265

Re: Petal simulation

... you try these two interfaces? i still think it is hard to implement your feature. the point is what will be used to overcome the gravity. psb->setPose(false, true) psb->generateClusters(8) Hi steven, thanks for your reply. I set the mass of top node and bottom node of petal to zero to overcome ...
by steven
Fri Apr 12, 2019 1:56 pm
Forum: General Bullet Physics Support and Feedback
Topic: Petal simulation
Replies: 5
Views: 265

Re: Petal simulation

Could you try these two interfaces? i still think it is hard to implement your feature. the point is what will be used to overcome the gravity.
psb->setPose(false, true)
psb->generateClusters(8)
by Silverlan
Mon Sep 25, 2017 9:11 pm
Forum: General Bullet Physics Support and Feedback
Topic: Soft-body physics objects don't keep shape after collision?
Replies: 0
Views: 1039

Soft-body physics objects don't keep shape after collision?

... set, soft-body physics fall through, without it they collide properly. What could be the reason for that? // Edit: Problem solved! I had to call "setPose" after initializing the soft-body and change the pose-matching coefficient accordingly.
by Xcoder79
Mon Jul 18, 2016 11:03 pm
Forum: General Bullet Physics Support and Feedback
Topic: Soft Body Plasticity
Replies: 6
Views: 2820

Re: Soft Body Plasticity[SOLVED]

... btVector3(1,1,1)*3, 512); //psb->m_materials[0]->m_kLST = 0.45; //psb->m_cfg.kVC = 20; //psb->setTotalMass(50,true); psb->setPose(false,true); pdemo->getSoftDynamicsWorld()->addSoftBody(psb); Ctor_BigPlate(pdemo); //Ctor_LinearStair(pdemo,btVector3(0,0,0),btVector3(2,1,5),0,10); ...
by Xcoder79
Tue Jul 12, 2016 1:08 am
Forum: General Bullet Physics Support and Feedback
Topic: Soft Body Plasticity
Replies: 6
Views: 2820

Re: Soft Body Plasticity

Hi, I had the same problem awhile ago, trying to simulate plasticity when using setPose, It doesn't really lock the mesh it rather slows it down but it still tries returning the softbody to its original shape I should of mentioned that this happens on collison with ...
by inzombiak
Thu Jun 30, 2016 5:21 pm
Forum: General Bullet Physics Support and Feedback
Topic: Soft Body Plasticity
Replies: 6
Views: 2820

Re: Soft Body Plasticity

I managed to "lock" the mesh by calling setPose. This solves the issue somewhat, but its not a fix since I still can't get my terrain to behave like clay. As an alternative I wanted to try using a btTriangleMesh instead, but I can figure out ...
by yang
Thu Oct 30, 2014 2:59 pm
Forum: General Bullet Physics Support and Feedback
Topic: how to prevent a softbody returning to its original shape
Replies: 1
Views: 2284

how to prevent a softbody returning to its original shape

... to change the shape of a softbody while maintaining its volume (suppse the softbody is like clay) I do have set the pose matching to be "false" in setPose(true,false)function. So I think the softbody will not try to keep its pose. But when my hands move away the softbody, the softbody returns to ...
by rohezal
Fri Mar 28, 2014 12:32 pm
Forum: General Bullet Physics Support and Feedback
Topic: Looking for a softbody book
Replies: 0
Views: 4177

Looking for a softbody book

... comments and understand hooks law and volume conservation. But more then one line of documentation would be nice. Is there information about the setPose function for softbody?
by Xcoder79
Thu Aug 09, 2012 4:23 am
Forum: General Bullet Physics Support and Feedback
Topic: soft body restitution
Replies: 1
Views: 2881

Re: soft body restitution

... coefficient [-inf,+inf] [aerodynamic]=> is a factor of pressure. btSoftBody::Config::kVC; // Volume conversation coefficient [0,+inf] when 'setPose(true,...)' as been called, define the magnitude of the force used to conserve volume. btSoftBody::Config::kDF; // Dynamic friction coefficient ...
by Loic
Fri May 11, 2012 2:09 pm
Forum: General Bullet Physics Support and Feedback
Topic: Make btSoftBody more hard/rigid
Replies: 2
Views: 2034

Re: Make btSoftBody more hard/rigid

Hi,

Maybe a solution could be to use setPose(false,true), or eventually setPose(true,true). But i never try it.

For more informations about setPose have a look at http://bulletphysics.org/Bullet/phpBB3/ ... 280#p24280
by scorpion81
Sun Apr 08, 2012 10:16 am
Forum: General Bullet Physics Support and Feedback
Topic: Softbody destruction, SIGSEGV afterwards
Replies: 0
Views: 1800

Softbody destruction, SIGSEGV afterwards

... When using cutLinks i noticed the count of nodes increases. Do the nodes become invalid somehow ? And how to fix this ? I have 4 bullet functions (setPose, setLJoint, cutJoint and cutLink) exposed to blender game engine python in order to be able to destroy softbody objects. According to the softbody ...
by rookie
Tue Jan 03, 2012 11:38 pm
Forum: General Bullet Physics Support and Feedback
Topic: Soft body
Replies: 4
Views: 2548

Re: Soft body

... cubeSoftBody->m_materials[0]->m_kAST = 0.1; cubeSoftBody->m_materials[0]->m_kVST = 0.1; cubeSoftBody->scale(btVector3(10,10,10)); cubeSoftBody->setPose(true, true); cubeSoftBody->generateBendingConstraints(2); cubeSoftBody->randomizeConstraints(); cubeSoftBody->generateClusters(64); // cubeSoftBody->setMass(10, ...
by rookie
Tue Jan 03, 2012 11:33 pm
Forum: General Bullet Physics Support and Feedback
Topic: How to apply force to the vertew or face in SoftBody?
Replies: 4
Views: 3853

Re: How to apply force to the vertew or face in SoftBody?

... cubeSoftBody->m_materials[0]->m_kAST = 0.1; cubeSoftBody->m_materials[0]->m_kVST = 0.1; cubeSoftBody->scale(btVector3(10,10,10)); cubeSoftBody->setPose(true, true); cubeSoftBody->generateBendingConstraints(2); cubeSoftBody->randomizeConstraints(); cubeSoftBody->generateClusters(64); // cubeSoftBody->setMass(10, ...
by rookie
Thu Dec 29, 2011 10:06 pm
Forum: General Bullet Physics Support and Feedback
Topic: Soft body
Replies: 4
Views: 2548

Soft body

... = /*0.8*/0.2; cubeSoftBody->m_materials[0]->m_kVST = /*0.8*/1.0; cubeSoftBody->scale(btVector3(10,10,10)); cubeSoftBody->setPose(true, true); cubeSoftBody->generateBendingConstraints(2); cubeSoftBody->randomizeConstraints(); btMatrix3x3 m; m.setIdentity(); cubeSoftBody->transform(btTransform(m,btVector3(0, ...