Simple ChaseCamera

Hello guys.

I want to contribute a simple chase camera.

Features:

  • Simple code.
  • chaseCamera can be updated in Control/AppsState/SimpleApplicationUpdate. Anywhere you want to update it.
  • Camera can be rotated without vertical limitation which is good for world editors or space games.
  • Code can be modified.

Here is the code: https://code.google.com/p/jme-simple-examples/source/browse/#hg%2FJMESimpleExamples%2Fsrc%2FSimpleChaseCamera

Here is the example video:
[video]http://www.youtube.com/watch?v=GGZa8JIcc48&feature=youtu.be[/video]

Be happy. :slight_smile:

5 Likes

Thanks. That’s what i really need.

Hello, mifth,
I have downloaded the examples, and run the “SimpleChaseCameraTest.java”,
However, the camera can not rotated without vertical limitation.
I also see your video, it certainly can be rotated without vertical limitation.
Do I miss something or the version of my jme3 is too low? I use jme3 sdk 3.0 stable.

If you look at the code for the cam, you can see that you need to call setDoVerticalConstraint(false) on the chasecam if you want to be able to move all the way around.

Thanks, it works. :smile:

yep, just check all methods.