Replies: 4 comments 11 replies
-
Hi, you can get the 3D camera instance from Give a shout if you get stuck. |
Beta Was this translation helpful? Give feedback.
-
Have you figure this one out? I've came up with an implemention that uses only FXGL tools, no extra libraries needed, I'm no expert so it's possible that is not that good, but I find a way to use the FPS camera and update the position when it moves to always look at an entity, of course it can be improved and I could use help with the tweaks so if either of you would like to take a look let me know |
Beta Was this translation helpful? Give feedback.
-
@AlmasB By the way, you asked
I figured that this matches my needs very closely:
I needed to move the camera a bit closer to my ship
That creates a view, like the camera being on a fixed stick behind the ship, copying all rotations and being in a fixed distance - which is what I need. |
Beta Was this translation helpful? Give feedback.
-
@Snoopy137 I took the liberty to fork your repo and modify it to show what I intend to do Control with
|
Beta Was this translation helpful? Give feedback.
-
Hey,
I am just learning my way around in FXGL and I am trying a 3D game. Basically I want the camera to follow the 3D view of the player, being in a fixed postion in relation to the player entity, while the player entity is moving around.
In pure JavaFX I would put a perspective camera and the player node in a group and move the group. But it seems FXGL has a dedicated camera handling and I don't know how to do it in FXGL.
Can anybody help?
Beta Was this translation helpful? Give feedback.
All reactions