Attach it to ARCamera
using UnityEngine; using System.Collections; // ARCameraにつける public class ARSmoother : MonoBehaviour { // 調整パラメータ public float positionRatio = 0.1f; public float rotationRatio = 0.1f; private Vector3 previousPosition; private Quaternion previousQuaternion; void LateUpdate () { // 和らげる this.transform.position = Vector3.Slerp(previousPosition, this.transform.position, positionRatio); this.transform.rotation = Quaternion.Slerp(previousQuaternion, this.transform.rotation, rotationRatio); // 保存 previousPosition = this.transform.position; previousQuaternion = this.transform.rotation; } }