Inside ofEasyCam::reset()
, adding the line below,
this->setPosition(ofGetWidth()/2, ofGetHeight()/2, lastDistance);
Does not set the INITIAL camera position properly. It somehow defaults to (0, 0, 0)
.
But calling reset()
once again inside a keyPressed
callback DOES set the camera position as desired.
Does anyone have a clue to this problem?