ksiva wrote:
How about parenting it to the camera?
- Kim
I appreciate all of your input on this.
My last problem is regarding character movement. I have a character that I move around the screen, but as soon as I parent the AROrigin to the ARCamera, his movement is no relative to the AROrigin as it was previously.
For context, this is how the scene is set up PRIOR to parenting the AR to the camera:
tracker
-- AROrigin
------ SceneParent (empty)
---------- CharacterParent (CharacterController)
-------------- Character Model
---------- Scene stuff
And then, AFTER parenting the AR to the camera, I have:
ARCamera
-- AROrigin
------ SceneParent (empty)
-------- CharacterParent (CharacterController)
------------ Character Model
-------- Scene stuff
In the prior case, the character moves around just fine. In other words, his forward movement is relative to the background and the way he is facing.
In the last case (where AROrigin is parented to ARCamera), the character's movement is relative to the camera position in some way that I can't entirely figure out. As I turn the device, his movement becomes worse.
Any thoughts as to what I'm missing?
I can try that out tomorrow... but in the past I remember looking it up and learning that you can't change that setting at runtime (at least via the function call).