コード例 #1
0
 public void Interpolate(RigidTransform to, float t)
 {
     pos = SteamVR_Utils.Lerp(pos, to.pos, t);
     rot = SteamVR_Utils.Slerp(rot, to.rot, t);
 }
コード例 #2
0
 public void Interpolate(SteamVR_Utils.RigidTransform to, float t)
 {
     this.pos = SteamVR_Utils.Lerp(this.pos, to.pos, t);
     this.rot = SteamVR_Utils.Slerp(this.rot, to.rot, t);
 }