|
ksmm->addMatrixManipulator('m',"tankFollower",followTank);
……
TankInputDeviceStateType* tankInputDeviceState = new TankInputDeviceStateType;
if(tankInputDeviceState->cameraMode)
viewer.setCameraManipulator(ksmm);//跟随节点摄像机
其中cameraMode是通过按下键盘的m键来切换true或者false状态的,可是在运行程序过程中切换时不起作用,视角只呈现cameraMode的初始状态,为何呢?是不是该用到回调机制呢? |
|