Rotation around player with offset #104
Replies: 4 comments
-
Would you happen to have a video example, from another game, of what you're trying to achieve? Think I know what it is, but just want to make sure I understand it correctly. |
Beta Was this translation helpful? Give feedback.
-
Any game where you can move the camera around the player? Most third person controllers for Godot will let you do it. I found one example: here at about 5:40. You can see the position of the camera and model can be controlled independently of one another. This is usually done using a gimbal (example)[https://kidscancode.org/godot_recipes/3.x/3d/camera_gimbal/index.html] or spring arm. |
Beta Was this translation helpful? Give feedback.
-
Attached a small sample scene, should be able to just add the extracted directory to your project with the plugin installed, is this what you were thinking of? It's essentially just copied from the video you posted above, where you can move the character with |
Beta Was this translation helpful? Give feedback.
-
That works fine. Don't know why I had such a problem with it. Thanks. |
Beta Was this translation helpful? Give feedback.
-
I want to rotate the camera based on the direction of the player or independently, preferably with an offset. I can't get anything to work - the closest I've gotten is putting a PhantomCamera inside a Node3D acting as a gimbal and setting the LookAt mode to mimic, but the camera only rotates in place, not around the player.
There's probably an obvious way to do this and I'm just not seeing it.
Beta Was this translation helpful? Give feedback.
All reactions