Skip to content

Commit

Permalink
plane vs object fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilgramblicka committed Mar 9, 2018
1 parent b466e34 commit 43de90b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/otbullet/ot_terrain_contact_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ void ot_terrain_contact_common::collide_object_plane(fn_elevation_above_terrain
//btStaticPlaneShape plane(btVector3(norm.x,norm.y,norm.z),glm::dot(norm,pos - (norm*elev)));

btCollisionObjectWrapper planeObWrap(_manifold->getBody1Wrap(), &plane, _manifold->getBody1Wrap()->getCollisionObject(), _manifold->getBody1Wrap()->getWorldTransform(), 0, 0);//correct transform?

const btCollisionObjectWrapper * curr_col_obj_wrapper = _manifold->getBody0Wrap();
_manifold->setBody0Wrap(_convex_object);

btCollisionAlgorithm* colAlgo = _collision_world->getDispatcher()->findAlgorithm(_manifold->getBody0Wrap(), &planeObWrap, _manifold->getPersistentManifold());

const btCollisionObjectWrapper* tmpWrap = 0;
Expand Down

0 comments on commit 43de90b

Please sign in to comment.