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

Instantly moves the PlayerRig so that the players feet (anchor) end up at world coordinates 'pos'

Definition at line 154 of file AVR_PlayerRig.cs.

154  {
155  transform.position = (pos + (RigInWorldSpace - FeetInWorldSpace));
156  if(!affectMotion) _lastFPos = pos;
157  }
Vector3 RigInWorldSpace
Player Rig location in world space
Vector3 FeetInWorldSpace
Position on the gorund directly underneath the camera. (World space)