オブジェクトの拡大縮小・回転 - saitocastel1900/ARWhackAMole GitHub Wiki
色々方法はあるが、今回は単体で振る舞いを実行したいので、ARSessionOriginの機能は使わないで実装した。
ARSessionOrigin特有での実装
sessionOrigin.MakeContentAppearAt(_placedObjectManager.GetPlacedObject().transform, _placedObjectManager.GetPlacedObject().transform.position, _rotation);
sessionOrigin.transform.localScale = Vector3.one / scale
- AR空間自体を操作することで、相対的に大きさ・角度を変化させているように見せている => 全体が変化するため、範囲が広すぎる
単純に実装
_placedObjectManager.GetPlacedObject().transform.rotation = Quaternion.Inverse(_rotation);
transform.localScale = Vector3.one / scale
- Unity上でよくある実装。設置したオブジェクトのみ影響がある