In my game I move the camera in my KeyBehavior (extends ViewPlatformBehavior) This works fine but I'd like to be able to move the camera in a more fluid way. Currently these moves are about 1 meter each and look like a "step". Any idea how to animate the camera move between the 2 vectors?
protected void doMove(Vector3f theMove) {
        // move the main, forward-facing camera
        // get the current开发者_StackOverflow中文版 location and translate it by the passed in Vector.
        targetTG.getTransform(t3d);
        toMove.setTranslation(theMove);
        t3d.mul(toMove);
        targetTG.setTransform(t3d);
}
To solve this I used a transtion Vector and moved the Camera transform in a loop. Works fine. :)
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论