Ejemplo n.º 1
0
//--------------------------------------------------------------
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();
}
Ejemplo n.º 2
0
//--------------------------------------------------------------
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();
}