Closed arbonvata closed 1 month ago
Thanks for reporting the issue. We will take a look at it.
Hi @arbonvata, I think you are missing location.puckBearingEnabled = true
in your code snippet.
In your case the puck bearing is not enabled at all, and please also note that once you are in FollowPuckViewportState
, the camera bearing is driven by the viewport plugin(updated every frame), so the setCamera
you pragmatically call will be overwritten by FollowPuckViewportState
immediately. To be able to take over the bearing pragmatically while in FollowPuckViewportState
, you will need to set FollowPuckViewportStateOptions.Builder().bearing(null).build()
.
Thanks for the help. It works now
Environment
Observed behavior and steps to reproduce
Given the following code:
and also
Have tried to remove the location.addOnIndicatorPositionChangedListener and replaced with
without any impact Changing bearing on CameraOptions.Builder().bearing doesn't have any impact at all. I have played with values 0, 90, 180 and 270. No visible impact at all
Same with location.puckBearing = PuckBearing.HEADING. No impact at all
See the attached file. We are moving from right to the left in the image
Expected behavior
The location puck should have the same direction as the movement
Notes / preliminary analysis
I have followed the recommendation from the official tutorials, and I guess that the attached code is correct
Additional links and references