Camera node example

hi all.
i could not find examples about how to use camera node.
in fact i wanna use the hello_collision example with an attached weapon that moves with character .
could you give me an example please.
thank you.

Look at TestBetterCharacter - it attaches a CameraNode to the upper area of the capsule.
It’s a demo from the “test project” (when using the SDK: File > New Project… > JME3 > JME3 Tests).
Can be found in github too (but may need some assets from testdata.jar): jmonkeyengine/TestBetterCharacter.java at master · jMonkeyEngine/jmonkeyengine · GitHub

1 Like

Hey,

maybe this topic could help you too:

https://hub.jmonkeyengine.org/t/camera-node-problem/28736/4

1 Like