Page 1 of 1

Get vertex of btGImpactMeshShape

Posted: Wed Mar 09, 2016 3:22 pm
by Ehsanizadi
Hi,

How can I get vertices of a gimpact shape?

I do:

btVector3 localPos;
collisionShape->getMeshPart(0)->getVertex(j,localPos);

it compiles well, but when it executes, it gives a segmentation fault!

Am I missing something?

Regards,
Ehsan

Re: Get vertex of btGImpactMeshShape

Posted: Wed Mar 16, 2016 11:33 am
by Ehsanizadi
Is it something related to locking or unlocking the mesh?

Any hints?

Re: Get vertex of btGImpactMeshShape

Posted: Wed Mar 16, 2016 4:53 pm
by Flix
As usual, another already-answered question:

http://bulletphysics.org/Bullet/phpBB3/ ... ace#p34363

P.S. Maybe we should ask users to use the "Search" button before posting.