Rigidbodies are not colliding

Post Reply
ComradeKeys
Posts: 5
Joined: Thu Jul 28, 2016 1:23 am

Rigidbodies are not colliding

Post by ComradeKeys »

I am trying to play around with collision masks, and I followed this tutorials to implement them
http://www.bulletphysics.org/mediawiki- ... _Filtering
It seems like I have the collision masks being applied because when the vehicle is falling it gets tipped over by the map but continues to fall into the abyss under the map. Here is the code as the moment that creates the rigidbody.
https://paste.fedoraproject.org/406388/94464914

And here is the code where I initialize my btWorld
https://paste.fedoraproject.org/406390/09449111/
Is it a configuration I need in my btWorld? I am not sure why these objects are passing through eachother like this, however when I spawn a btBoxShape it will collide with the map just fine.
Does anyone know what I am doing wrong in this?
ComradeKeys
Posts: 5
Joined: Thu Jul 28, 2016 1:23 am

Re: Rigidbodies are not colliding

Post by ComradeKeys »

The issue ended up being that I was using an GImpactMeshShape when I should of been using a btConvexTriangleMeshShape, after changing this out the collision worked just fine.
benelot
Posts: 350
Joined: Sat Jul 04, 2015 10:33 am
Location: Bern, Switzerland
Contact:

Re: Rigidbodies are not colliding

Post by benelot »

Cool that you solved your problem and wrote what the issue was back to the forum. Can you open the first post and add [SOLVED] to the beginning of the title? That helps us to distinguish solved from unsolved topics.
Post Reply