You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a PhantomCamera3D has both Follow Mode and Look At Mode set, with dampening enabled on Follow Mode, the camera fails to look at a moving target.
This is due to the PhantomCamera3D _interpolate_rotation method using the PCam's position instead of the Godot Camera Node position. The PCam position is not interpolated so it is already in the "final" position the Godot Camera is interpolating towards.
Steps to reproduce
Construct a Node3D scene with a PhantomCamera3D and some 3D primitive object to act as the Follow Target and Look At Target for the PCam.
Set the PCam3D Follow and Look At targets to the primitive object.
Set the PCam3D Follow Parameters to use:
Follow Dampening with values greater than 1 so the effect is more noticeable.
Follow Offset with any reasonable values to view the Follow / Look At target.
Run the scene and move the target object around the scene. You will notice the look at fails to track the target.
(Optional) Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
I've already resolved this issue in a fork commit here. torves@cda9b0d
This has only been tested using Follow Simple and Look At Simple modes, other modes have not been tested.
If this is satisfactory I can create a pull request for this issue.
Edit:
After testing with other behaviors this will need more work than simply changing it to use the Godot Camera for look at position. This has caused severe stuttering issues I'm still looking into fixing in order to add this tracking behavior.
Issue description
When a PhantomCamera3D has both Follow Mode and Look At Mode set, with dampening enabled on Follow Mode, the camera fails to look at a moving target.
This is due to the PhantomCamera3D
_interpolate_rotation
method using the PCam's position instead of the Godot Camera Node position. The PCam position is not interpolated so it is already in the "final" position the Godot Camera is interpolating towards.Steps to reproduce
(Optional) Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: