//-------------------------------------------------------------- void ofxBulletSphere::draw() { if(!_bCreated || _rigidBody == NULL) { ofLog(OF_LOG_WARNING, "ofxBulletSphere :: draw : must call create() first and add() after"); return; } transformGL(); ofDrawSphere( 0, 0, 0, getRadius() ); restoreTramsformGL(); }
//-------------------------------------------------------------- void ofxBulletCone::draw() { if(!_bCreated || _rigidBody == NULL) { ofLog(OF_LOG_WARNING, "ofxBulletCone :: draw : must call create() first and add() after"); return; } transformGL(); ofPushMatrix(); ofRotate(180, 1, 0, 0); ofDrawCone( 0, 0, 0, getRadius(), getHeight() ); ofPopMatrix(); restoreTramsformGL(); }