private void ExitHand(VRHand.eHandType _handType) { m_eEnteredHand &= ~_handType; if (!IsEnteredAnyHand()) { HideOutLine(); } }
private void SetDefaultData(uint _id, VRHand.eHandType _handType, Vector3 _position, Quaternion _rotation, float _receiveTime) { ReceiveTime = _receiveTime; GrabberID = _id; HandType = _handType; Position = _position; Rotation = _rotation; }
private void EnterHand(VRHand.eHandType _handType) { if (!IsEnteredAnyHand()) { ShowOutLine(); } m_eEnteredHand |= _handType; }
protected virtual void Restore() { StopPivotProcessing(); m_eEnteredHand = 0; m_bIsEnabled = m_bSavedIsEnabled; HideOutLine(); SetTransformRecorded(); }
public void SetGrabData(uint _id, VRHand.eHandType _handType, Vector3 _position, Quaternion _rotation, float _receiveTime) { RecordData(); grabbedCount++; SetDefaultData(_id, _handType, _position, _rotation, _receiveTime); if (MyNetworkManager.IsMyID(GrabberID)) { GrabHandTransform = VRHandEventHandler.GetHandGrabPivot(HandType); } else { GrabHandTransform = NetCharacterHandler.GetHandGrabPivot(GrabberID, HandType); } }
protected override void OnChangedGrab(VRHand.eHandType _prevGrabbedHand, VRHand.eHandType _curGrabbedHand) { }
private void RecordData() { PrevReceiveTime = ReceiveTime; PreviousHandType = HandType; PreviousGrabberID = GrabberID; }
public void SetUnGrabData(VRHand.eHandType _handType, Vector3 _position, Quaternion _rotation, Vector3 _velocity, float _receiveTime) { RecordData(); SetDefaultData(MyNetworkManager.INVALIDID, _handType, _position, _rotation, _receiveTime); Velocity = _velocity; }
protected virtual void OnChangedGrab(VRHand.eHandType _prevGrabbedHand, VRHand.eHandType _curGrabbedHand) { }