コード例 #1
0
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;
}
コード例 #2
0
CoordinateFrame ThirdPersonManipulator::computeOffsetFrame(
    const CoordinateFrame& controlFrame, 
    const CoordinateFrame& objectFrame) {
    return objectFrame * controlFrame.inverse();
}