0

在我的游戏中,我在 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);
}
4

1 回答 1

0

为了解决这个问题,我使用了一个转换向量并在一个循环中移动了相机转换。工作正常。:)

于 2011-05-09T00:03:54.860 回答