Static RigidBody Collision objects
Posted: Wed Jan 07, 2015 10:11 pm
Hello,
I'm brand new to Bullet Physics! I'm trying to build a voxel collision engine, where I have a set of static voxels placed arbitrarily around a 3d space. As moving particles collide with a given voxel, I want the voxel to turn the same color as the collided particle.
So far I'm able to detect a collision, but I'm not sure if I'm implementing my RigidBody objects (the voxel) properly since they are kinematic and fall to the ground with gravity (see attached screenshot). I would like for these voxels to hover over the ground, similar to how bricks in Mario work. If there is an example tutorial or some code snippet someone can point me to that would be amazing! Thanks in advance!
I'm brand new to Bullet Physics! I'm trying to build a voxel collision engine, where I have a set of static voxels placed arbitrarily around a 3d space. As moving particles collide with a given voxel, I want the voxel to turn the same color as the collided particle.
So far I'm able to detect a collision, but I'm not sure if I'm implementing my RigidBody objects (the voxel) properly since they are kinematic and fall to the ground with gravity (see attached screenshot). I would like for these voxels to hover over the ground, similar to how bricks in Mario work. If there is an example tutorial or some code snippet someone can point me to that would be amazing! Thanks in advance!