Ghost objects - bulletphysics
问题 I'm trying to implement a simple ghost object in bulletphysics, this is how I create the ghost objects: btGhostPairCallback* ghostCall = new btGhostPairCallback(); world->getBroadphase()->getOverlappingPairCache()->setInternalGhostPairCallback(ghostCall); btGhostObject* ghostObj = new btGhostObject(); btCollisionShape* shape = new btBoxShape(btVector3(ofGetWidth()+1000, ofGetHeight()+1000, 50)); ghostObj->setCollisionShape(shape); btTransform trans; trans.setIdentity(); trans.setOrigin