Camera on rails

Hi everyone, I have a racing game project in which I would like to use a chase camera that doesn’t chase the vehicle from behind but instead it would follow some kind of predefined path or rails while the vehicle moves. Something like this:







I don’t know how to start this, I’ve tried CameraNode and some different things on ChaseCamera but I think that’s far from what I want. Does anyone have any clue?



Thanks.

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:cinematics

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:motion_path

hmmm…the motion path doc is not really up to date, but you have a test case that does exactly that named TestCameraMotionPath

Great, I’ll try it, thanks again.