Softbody destruction, SIGSEGV afterwards

scorpion81
Posts: 11
Joined: Sun Apr 08, 2012 10:01 am

Softbody destruction, SIGSEGV afterwards

Post by scorpion81 »

Hello,

how can i re-validate my softbody after destroying links using cutLink or refine ? I get SIGSEGV errors when trying to continue in the simulation.
Its the line 2410 in btSoftbody.cpp (from bullet version included in blender 2.62) which makes trouble:

const int idx=int(c.m_nodes[j]-&m_nodes[0]);

idx is used to index into an array afterwards, but it always has very large positive or even negative values.

Do i have to re-initialize/update something ? 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 demo this
is possible with refine function. And it should be possible too with the cutLink function.

I want to extend my blender addon which deals with rigidbody destruction with softbody destruction in the blender game engine:

http://blenderartists.org/forum/showthr ... ity-Editor

Hope somebody can help me.

scorpion81