VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
void AVR.Core.AVR_PlayerRig.MoveRigToCameraPosition ( Vector3  pos,
bool  affectMotion = true 
)
inline

Instantly moves the PlayerRig so that the camera ends up at world coordinates 'pos'

Definition at line 170 of file AVR_PlayerRig.cs.

170  {
171  transform.position += (pos - CameraInWorldSpace);
172  if(!affectMotion) _lastFPos = FeetInWorldSpace;
173  }
Vector3 CameraInWorldSpace
Player camera in world space
Vector3 FeetInWorldSpace
Position on the gorund directly underneath the camera. (World space)