在我的游戏中,我在 KeyBehavior 中移动相机(扩展 ViewPlatformBehavior) 这工作正常,但我希望能够以更流畅的方式移动相机。目前,这些动作每个大约 1 米,看起来像一个“台阶”。知道如何为两个向量之间的相机移动设置动画吗?
protected void doMove(Vector3f theMove) {
// move the main, forward-facing camera
// get the current location and translate it by the passed in Vector.
targetTG.getTransform(t3d);
toMove.setTranslation(theMove);
t3d.mul(toMove);
targetTG.setTransform(t3d);
}