Get vertex of btGImpactMeshShape

Post Reply
Ehsanizadi
Posts: 71
Joined: Mon Dec 02, 2013 4:13 pm

Get vertex of btGImpactMeshShape

Post by Ehsanizadi » Wed Mar 09, 2016 3:22 pm

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

Ehsanizadi
Posts: 71
Joined: Mon Dec 02, 2013 4:13 pm

Re: Get vertex of btGImpactMeshShape

Post by Ehsanizadi » Wed Mar 16, 2016 11:33 am

Is it something related to locking or unlocking the mesh?

Any hints?

Flix
Posts: 456
Joined: Tue Dec 25, 2007 1:06 pm

Re: Get vertex of btGImpactMeshShape

Post by Flix » Wed Mar 16, 2016 4:53 pm

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.

Post Reply