I’m building a car game in AR using 8th Wall Studio. I’ve adapted code from the Vehicle Controller example.. Vehicle Controller | 8th Wall | 8th Wall
In my game, I use a Tap to Place UI that lets the player position assets in the real world.
The issue is: if the player places the car anywhere other than directly in front of them, the car still drives using the world forward direction. This results in the car moving sideways or in the wrong direction.
I believe I need to either transform the movement direction into local space, or recenter the world when the player taps to place. However, XR8.XrController.recenter() seems to only work in A-Frame?
Any help would be greatly appreciated!