void ThirdPersonManipulator::setControlFrame(const CoordinateFrame& c) { // Compute the offset for the new control frame, and then // change the control frame. m_offsetFrame = c.inverse() * frame(); m_controlFrame = c; }
CoordinateFrame ThirdPersonManipulator::computeOffsetFrame( const CoordinateFrame& controlFrame, const CoordinateFrame& objectFrame) { return objectFrame * controlFrame.inverse(); }