sparkprime wrote:edl: oh of course if you have more than one gimpact triangle mesh in a compound then there is no way to identify which one it is -- currently the part/index is for the mesh -- there is no way to get the index that defines the position of the gimpact shape within the compound. It's a hack, basically.
Can you not fuse the meshes?
no, i can't fuse the meshes,my work is build a car ,then crash it,the car body is convex mesh(i don't kown why,when i use GImpact mash as my car body,the car act like a balloon,it flies~
,i need some time to check why it act like that), and the door/engineCover and other components was build as Gimpact mash, In order to better fit the carbody,i think gimact mesh is better,but it ....
have lots of problems...
for now,if this problems exist,my schedule don't have time to study and fix it this days(due to the post,it seems not easy...), i construct a list,contain the car components,and use btManifoldResult to get the car crash point and impulse(it seems that,btManifoldResult.m_appliedImpulse looks strange, this time i use m_distance1 instead,its very ugly..
),then identify the child chape,and remove it from compound.
i use convex as child shape before,and it works right,but ,when remove it from compound,it is not stable(i think it is not fit the car body shape).
my options now
1. use gimpact mesh,and build a shape list to identify it myself
2. re-mesh my car, and use convex mesh,(but it will seems ugly)
3. fix the bug....(God help me...
)
any idea to help me?
You do not have the required permissions to view the files attached to this post.