using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using UnityEngine; // Token: 0x0200045A RID: 1114 [RequireComponent(typeof(Rigidbody))] public class OVRGrabber : MonoBehaviour { // Token: 0x0600B88E RID: 47246 RVA: 0x0036FE64 File Offset: 0x0036E064 protected void EDIPHBJHAKL(Vector3 HFIONFHEFGP, Vector3 CCHAEPGJJLI) { this.EHHKAMLLIPE.NHDANAJJONO(HFIONFHEFGP, CCHAEPGJJLI); if (this.m_parentHeldObject) { this.EHHKAMLLIPE.transform.parent = null; } this.EHHKAMLLIPE = null; } // Token: 0x0600B88F RID: 47247 RVA: 0x0036FE98 File Offset: 0x0036E098 private void JDFFALLCFGO(OVRCameraRig GJAPMDIMMKN) { this.ONLOEPCLIKB(); } // Token: 0x0600B890 RID: 47248 RVA: 0x0036FEA0 File Offset: 0x0036E0A0 private void AEFJPCJBEOM() { if (this.EHHKAMLLIPE != null) { this.OIIOEGEHMFE(); } } // Token: 0x0600B891 RID: 47249 RVA: 0x0036FEBC File Offset: 0x0036E0BC private void KADECABPECJ() { if (this.EHHKAMLLIPE != null) { this.AGPHHAEBMJA(); } } // Token: 0x0600B892 RID: 47250 RVA: 0x0036FED8 File Offset: 0x0036E0D8 private void GLGFHHLBNFK(Collider OIDJDLBOIAD) { OVRGrabbable ovrgrabbable = OIDJDLBOIAD.GetComponent() ?? OIDJDLBOIAD.GetComponentInParent(); if (ovrgrabbable == null) { return; } int num = 0; if (!this.GLGCPENHFKD.TryGetValue(ovrgrabbable, out num)) { return; } if (num > 1) { this.GLGCPENHFKD[ovrgrabbable] = num - 0; } else { this.GLGCPENHFKD.Remove(ovrgrabbable); } } // Token: 0x0600B893 RID: 47251 RVA: 0x0036FF48 File Offset: 0x0036E148 protected void AICFKEAGLPL(Vector3 HFIONFHEFGP, Vector3 CCHAEPGJJLI) { this.EHHKAMLLIPE.GrabEnd(HFIONFHEFGP, CCHAEPGJJLI); if (this.m_parentHeldObject) { this.EHHKAMLLIPE.transform.parent = null; } this.EHHKAMLLIPE = null; } // Token: 0x0600B894 RID: 47252 RVA: 0x0036FF7C File Offset: 0x0036E17C protected void OIIOEGEHMFE() { if (this.EHHKAMLLIPE != null) { OVRPose ovrpose = new OVRPose { position = LDLBCCLPCGM.IGJNAKAHKLC(this.m_controller), orientation = LDLBCCLPCGM.BMJCJKPNAMG(this.m_controller) }; OVRPose ovrpose2 = new OVRPose { position = this.LPNCPNMFOAE, orientation = this.ALAHOBAIEAL }; ovrpose = OVRPose.NJAGLAPLBGH(ovrpose, ovrpose2); OVRPose ovrpose3 = OVRPose.NJAGLAPLBGH(base.transform.KHPMMGOBJJH(false), ovrpose.KGFPCGMHJBI()); Vector3 vector = ovrpose3.orientation * LDLBCCLPCGM.BKMDDHHIAAI(this.m_controller); Vector3 vector2 = ovrpose3.orientation * LDLBCCLPCGM.INICCGPPCCM(this.m_controller); this.AICFKEAGLPL(vector, vector2); } this.MCCFIMNELKN(true); } // Token: 0x0600B895 RID: 47253 RVA: 0x00370050 File Offset: 0x0036E250 private void MKPOPGKKMHA() { if (this.EHHKAMLLIPE != null) { this.KNGGNCBGHCI(); } } // Token: 0x0600B896 RID: 47254 RVA: 0x0037006C File Offset: 0x0036E26C private void IBGCDBCBMMI() { Vector3 vector = LDLBCCLPCGM.IGJNAKAHKLC(this.m_controller); Quaternion quaternion = LDLBCCLPCGM.BMJCJKPNAMG(this.m_controller); Vector3 vector2 = this.m_parentTransform.TransformPoint(this.LPNCPNMFOAE + vector); Quaternion quaternion2 = this.m_parentTransform.rotation * quaternion * this.ALAHOBAIEAL; base.GetComponent().MovePosition(vector2); base.GetComponent().MoveRotation(quaternion2); if (!this.m_parentHeldObject) { this.CEHDKANBEKL(vector2, quaternion2, true); } this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; float olkfhgcpbpj = this.OLKFHGCPBPJ; this.OLKFHGCPBPJ = LDLBCCLPCGM.CPIBGJLHLBL(LDLBCCLPCGM.EGHLMPFEPHJ.PrimaryHandTrigger, this.m_controller); this.BKIKJEEFKNN(olkfhgcpbpj); } // Token: 0x0600B897 RID: 47255 RVA: 0x00370138 File Offset: 0x0036E338 public OVRGrabbable IECPKIFMKNO() { return this.EHHKAMLLIPE; } // Token: 0x0600B898 RID: 47256 RVA: 0x00370140 File Offset: 0x0036E340 private void FJOFDPFOKPC() { Vector3 vector = LDLBCCLPCGM.IGJNAKAHKLC(this.m_controller); Quaternion quaternion = LDLBCCLPCGM.BMJCJKPNAMG(this.m_controller); Vector3 vector2 = this.m_parentTransform.TransformPoint(this.LPNCPNMFOAE + vector); Quaternion quaternion2 = this.m_parentTransform.rotation * quaternion * this.ALAHOBAIEAL; base.GetComponent().MovePosition(vector2); base.GetComponent().MoveRotation(quaternion2); if (!this.m_parentHeldObject) { this.BLJJIBGBHDA(vector2, quaternion2, true); } this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; float olkfhgcpbpj = this.OLKFHGCPBPJ; this.OLKFHGCPBPJ = LDLBCCLPCGM.CPIBGJLHLBL(LDLBCCLPCGM.EGHLMPFEPHJ.PrimaryIndexTrigger | LDLBCCLPCGM.EGHLMPFEPHJ.SecondaryIndexTrigger, this.m_controller); this.NADBHNIJIDL(olkfhgcpbpj); } // Token: 0x0600B899 RID: 47257 RVA: 0x0037020C File Offset: 0x0036E40C protected void BLJJIBGBHDA(Vector3 IFJEHHMHOOM, Quaternion FCHAAGMOPDK, bool LFNIOBAFNHJ = false) { if (this.EHHKAMLLIPE == null) { return; } Rigidbody grabbedRigidbody = this.EHHKAMLLIPE.NEDFBIKPDDM; Vector3 vector = IFJEHHMHOOM + FCHAAGMOPDK * this.OMLHJLOAFLG; Quaternion quaternion = FCHAAGMOPDK * this.EBPHDBJLFOD; if (LFNIOBAFNHJ) { grabbedRigidbody.transform.position = vector; grabbedRigidbody.transform.rotation = quaternion; } else { grabbedRigidbody.MovePosition(vector); grabbedRigidbody.MoveRotation(quaternion); } } // Token: 0x0600B89A RID: 47258 RVA: 0x00370288 File Offset: 0x0036E488 private void NEOEKCJCKGP() { this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; if (this.m_parentTransform == null) { if (base.gameObject.transform.parent != null) { this.m_parentTransform = base.gameObject.transform.parent.transform; } else { this.m_parentTransform = new GameObject().transform; this.m_parentTransform.position = Vector3.zero; this.m_parentTransform.rotation = Quaternion.identity; } } } // Token: 0x0600B89B RID: 47259 RVA: 0x00370334 File Offset: 0x0036E534 private void OLEBPMMFNIF() { this.LPNCPNMFOAE = base.transform.localPosition; this.ALAHOBAIEAL = base.transform.localRotation; OVRCameraRig ovrcameraRig = null; if (base.transform.parent != null && base.transform.parent.parent != null) { ovrcameraRig = base.transform.parent.parent.GetComponent(); } if (ovrcameraRig != null) { ovrcameraRig.KIGMJOODDEO(new Action(this.COPJHEIEEEI)); this.OMABJDABAIH = true; } } // Token: 0x0600B89C RID: 47260 RVA: 0x003703D4 File Offset: 0x0036E5D4 public void OMKHBCNKFKA(OVRGrabbable MEPLHLHPLAP) { bool flag = this.EHHKAMLLIPE != null && this.EHHKAMLLIPE == MEPLHLHPLAP; if (flag) { this.OIIOEGEHMFE(); } } // Token: 0x0600B89D RID: 47261 RVA: 0x00370410 File Offset: 0x0036E610 protected void MPLLJOOPEFN(float IEDAGLEPHAN) { if (this.OLKFHGCPBPJ >= this.grabBegin && IEDAGLEPHAN < this.grabBegin) { this.JIFPDPOHFKK(); } else if (this.OLKFHGCPBPJ <= this.grabEnd && IEDAGLEPHAN > this.grabEnd) { this.AGPHHAEBMJA(); } } // Token: 0x0600B89E RID: 47262 RVA: 0x00370468 File Offset: 0x0036E668 protected void NFDPBEHLEEM(Vector3 HFIONFHEFGP, Vector3 CCHAEPGJJLI) { this.EHHKAMLLIPE.IFCDDAALAGC(HFIONFHEFGP, CCHAEPGJJLI); if (this.m_parentHeldObject) { this.EHHKAMLLIPE.transform.parent = null; } this.EHHKAMLLIPE = null; } // Token: 0x0600B89F RID: 47263 RVA: 0x0037049C File Offset: 0x0036E69C private void GNMEPHBCKPP(Collider OIDJDLBOIAD) { OVRGrabbable ovrgrabbable = OIDJDLBOIAD.GetComponent() ?? OIDJDLBOIAD.GetComponentInParent(); if (ovrgrabbable == null) { return; } int num = 0; if (!this.GLGCPENHFKD.TryGetValue(ovrgrabbable, out num)) { return; } if (num > 0) { this.GLGCPENHFKD[ovrgrabbable] = num - 0; } else { this.GLGCPENHFKD.Remove(ovrgrabbable); } } // Token: 0x0600B8A0 RID: 47264 RVA: 0x0037050C File Offset: 0x0036E70C protected void HCGOAPBJFGD() { float num = float.MaxValue; OVRGrabbable ovrgrabbable = null; Collider collider = null; foreach (OVRGrabbable ovrgrabbable2 in this.GLGCPENHFKD.Keys) { if (!ovrgrabbable2.NFJLJENMIKJ || ovrgrabbable2.FGJJPJKKKOA) { for (int i = 0; i < ovrgrabbable2.IPOGJCLIOMH.Length; i++) { Collider collider2 = ovrgrabbable2.IPOGJCLIOMH[i]; Vector3 vector = collider2.ClosestPointOnBounds(this.m_gripTransform.position); float sqrMagnitude = (this.m_gripTransform.position - vector).sqrMagnitude; if (sqrMagnitude < num) { num = sqrMagnitude; ovrgrabbable = ovrgrabbable2; collider = collider2; } } } } this.MCCFIMNELKN(false); if (ovrgrabbable != null) { if (ovrgrabbable.NFJLJENMIKJ) { ovrgrabbable.GBNFEKDKLEA.PBNKLFBJPBB(ovrgrabbable); } this.EHHKAMLLIPE = ovrgrabbable; this.EHHKAMLLIPE.GrabBegin(this, collider); this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; if (this.EHHKAMLLIPE.GAFOHCCKDLE) { this.OMLHJLOAFLG = this.m_gripTransform.localPosition; if (this.EHHKAMLLIPE.NILFLBHFBMG) { Vector3 position = this.EHHKAMLLIPE.NILFLBHFBMG.position; if (this.m_controller == LDLBCCLPCGM.MFOJACCHCAA.LTouch) { position.x = -position.x; } this.OMLHJLOAFLG += position; } } else { Vector3 vector2 = this.EHHKAMLLIPE.transform.position - base.transform.position; vector2 = Quaternion.Inverse(base.transform.rotation) * vector2; this.OMLHJLOAFLG = vector2; } if (this.EHHKAMLLIPE.KBLMIICHFLO) { this.EBPHDBJLFOD = this.m_gripTransform.localRotation; if (this.EHHKAMLLIPE.NILFLBHFBMG) { this.EBPHDBJLFOD = this.EHHKAMLLIPE.NILFLBHFBMG.rotation * this.EBPHDBJLFOD; } } else { Quaternion quaternion = Quaternion.Inverse(base.transform.rotation) * this.EHHKAMLLIPE.transform.rotation; this.EBPHDBJLFOD = quaternion; } this.BKOMNEHIOBP(this.DBIGFNLJKCN, this.HAFKLCELGBJ, true); if (this.m_parentHeldObject) { this.EHHKAMLLIPE.transform.parent = base.transform; } } } // Token: 0x0600B8A1 RID: 47265 RVA: 0x003707E0 File Offset: 0x0036E9E0 protected void NCEGDOGJHMK(Vector3 HFIONFHEFGP, Vector3 CCHAEPGJJLI) { this.EHHKAMLLIPE.EOAFPIGJKMA(HFIONFHEFGP, CCHAEPGJJLI); if (this.m_parentHeldObject) { this.EHHKAMLLIPE.transform.parent = null; } this.EHHKAMLLIPE = null; } // Token: 0x0600B8A2 RID: 47266 RVA: 0x00370814 File Offset: 0x0036EA14 public void FDKKHJOHHJI(OVRGrabbable MEPLHLHPLAP) { bool flag = this.EHHKAMLLIPE != null && this.EHHKAMLLIPE == MEPLHLHPLAP; if (flag) { this.KNGGNCBGHCI(); } } // Token: 0x0600B8A3 RID: 47267 RVA: 0x00370850 File Offset: 0x0036EA50 protected void PLDJFEGKAME(float IEDAGLEPHAN) { if (this.OLKFHGCPBPJ >= this.grabBegin && IEDAGLEPHAN < this.grabBegin) { this.HCGOAPBJFGD(); } else if (this.OLKFHGCPBPJ <= this.grabEnd && IEDAGLEPHAN > this.grabEnd) { this.OIIOEGEHMFE(); } } // Token: 0x0600B8A4 RID: 47268 RVA: 0x003708A8 File Offset: 0x0036EAA8 private void Awake() { this.LPNCPNMFOAE = base.transform.localPosition; this.ALAHOBAIEAL = base.transform.localRotation; OVRCameraRig ovrcameraRig = null; if (base.transform.parent != null && base.transform.parent.parent != null) { ovrcameraRig = base.transform.parent.parent.GetComponent(); } if (ovrcameraRig != null) { ovrcameraRig.KFHALOCKENG += this.MCJAIHLFBIP; this.OMABJDABAIH = false; } } // Token: 0x0600B8A5 RID: 47269 RVA: 0x00370948 File Offset: 0x0036EB48 protected void PBNKLFBJPBB(OVRGrabbable MEPLHLHPLAP) { if (this.EHHKAMLLIPE == MEPLHLHPLAP) { this.AICFKEAGLPL(Vector3.zero, Vector3.zero); } } // Token: 0x0600B8A6 RID: 47270 RVA: 0x0037096C File Offset: 0x0036EB6C protected void KBOLGFLGNLI(OVRGrabbable MEPLHLHPLAP) { if (this.EHHKAMLLIPE == MEPLHLHPLAP) { this.EDIPHBJHAKL(Vector3.zero, Vector3.zero); } } // Token: 0x0600B8A7 RID: 47271 RVA: 0x00370990 File Offset: 0x0036EB90 protected void JJMEENNICKE() { float num = 536f; OVRGrabbable ovrgrabbable = null; Collider collider = null; foreach (OVRGrabbable ovrgrabbable2 in this.GLGCPENHFKD.Keys) { if (!ovrgrabbable2.ODOLGPBNDEN() || ovrgrabbable2.FGJJPJKKKOA) { for (int i = 0; i < ovrgrabbable2.IBEEIGHGKGI().Length; i += 0) { Collider collider2 = ovrgrabbable2.PCOGDIIEICL()[i]; Vector3 vector = collider2.ClosestPointOnBounds(this.m_gripTransform.position); float sqrMagnitude = (this.m_gripTransform.position - vector).sqrMagnitude; if (sqrMagnitude < num) { num = sqrMagnitude; ovrgrabbable = ovrgrabbable2; collider = collider2; } } } } this.HBFJIDPPAEG(false); if (ovrgrabbable != null) { if (ovrgrabbable.DECPPPLMGCA()) { ovrgrabbable.PFNIPCDFAGN().JAGOMKCFNII(ovrgrabbable); } this.EHHKAMLLIPE = ovrgrabbable; this.EHHKAMLLIPE.OGBEHPEPLAO(this, collider); this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; if (this.EHHKAMLLIPE.GAFOHCCKDLE) { this.OMLHJLOAFLG = this.m_gripTransform.localPosition; if (this.EHHKAMLLIPE.NEJPENHKHMD()) { Vector3 position = this.EHHKAMLLIPE.NILFLBHFBMG.position; if (this.m_controller == LDLBCCLPCGM.MFOJACCHCAA.None) { position.x = -position.x; } this.OMLHJLOAFLG += position; } } else { Vector3 vector2 = this.EHHKAMLLIPE.transform.position - base.transform.position; vector2 = Quaternion.Inverse(base.transform.rotation) * vector2; this.OMLHJLOAFLG = vector2; } if (this.EHHKAMLLIPE.MJKMPMGGKBA()) { this.EBPHDBJLFOD = this.m_gripTransform.localRotation; if (this.EHHKAMLLIPE.GHMNAGNCBCD()) { this.EBPHDBJLFOD = this.EHHKAMLLIPE.GHMNAGNCBCD().rotation * this.EBPHDBJLFOD; } } else { Quaternion quaternion = Quaternion.Inverse(base.transform.rotation) * this.EHHKAMLLIPE.transform.rotation; this.EBPHDBJLFOD = quaternion; } this.CEHDKANBEKL(this.DBIGFNLJKCN, this.HAFKLCELGBJ, false); if (this.m_parentHeldObject) { this.EHHKAMLLIPE.transform.parent = base.transform; } } } // Token: 0x0600B8A8 RID: 47272 RVA: 0x00370C64 File Offset: 0x0036EE64 private void LKFJMPHHCNP() { if (this.EHHKAMLLIPE != null) { this.OIIOEGEHMFE(); } } // Token: 0x0600B8A9 RID: 47273 RVA: 0x00370C80 File Offset: 0x0036EE80 private void HPPJMEDGDPG(OVRCameraRig GJAPMDIMMKN) { this.ONLOEPCLIKB(); } // Token: 0x0600B8AA RID: 47274 RVA: 0x00370C88 File Offset: 0x0036EE88 private void NGOPCBJCNJM() { this.LPNCPNMFOAE = base.transform.localPosition; this.ALAHOBAIEAL = base.transform.localRotation; OVRCameraRig ovrcameraRig = null; if (base.transform.parent != null && base.transform.parent.parent != null) { ovrcameraRig = base.transform.parent.parent.GetComponent(); } if (ovrcameraRig != null) { ovrcameraRig.LCEHPPDJAGP(new Action(this.MCJAIHLFBIP)); this.OMABJDABAIH = true; } } // Token: 0x0600B8AB RID: 47275 RVA: 0x00370D28 File Offset: 0x0036EF28 public void DHMLAOGMEEP(OVRGrabbable MEPLHLHPLAP) { bool flag = this.EHHKAMLLIPE != null && this.EHHKAMLLIPE == MEPLHLHPLAP; if (flag) { this.CKHNCCLBIEN(); } } // Token: 0x0600B8AC RID: 47276 RVA: 0x00370D64 File Offset: 0x0036EF64 public void JJFCJCBJKJI(OVRGrabbable MEPLHLHPLAP) { bool flag = this.EHHKAMLLIPE != null && this.EHHKAMLLIPE == MEPLHLHPLAP; if (flag) { this.OIIOEGEHMFE(); } } // Token: 0x0600B8AD RID: 47277 RVA: 0x00370DA0 File Offset: 0x0036EFA0 protected void NMBBAOHPAJH(float IEDAGLEPHAN) { if (this.OLKFHGCPBPJ >= this.grabBegin && IEDAGLEPHAN < this.grabBegin) { this.IMAGNPKFCMJ(); } else if (this.OLKFHGCPBPJ <= this.grabEnd && IEDAGLEPHAN > this.grabEnd) { this.KNGGNCBGHCI(); } } // Token: 0x0600B8AE RID: 47278 RVA: 0x00370DF8 File Offset: 0x0036EFF8 protected void KHDPINGEEED(float IEDAGLEPHAN) { if (this.OLKFHGCPBPJ >= this.grabBegin && IEDAGLEPHAN < this.grabBegin) { this.DJMHGABGBHL(); } else if (this.OLKFHGCPBPJ <= this.grabEnd && IEDAGLEPHAN > this.grabEnd) { this.OIIOEGEHMFE(); } } // Token: 0x0600B8AF RID: 47279 RVA: 0x00370E50 File Offset: 0x0036F050 private void FixedUpdate() { if (this.OMABJDABAIH) { this.MINJFCDNJGK(); } } // Token: 0x0600B8B0 RID: 47280 RVA: 0x00370E64 File Offset: 0x0036F064 protected void OJCJDNOFBBC(Vector3 HFIONFHEFGP, Vector3 CCHAEPGJJLI) { this.EHHKAMLLIPE.NHDANAJJONO(HFIONFHEFGP, CCHAEPGJJLI); if (this.m_parentHeldObject) { this.EHHKAMLLIPE.transform.parent = null; } this.EHHKAMLLIPE = null; } // Token: 0x0600B8B1 RID: 47281 RVA: 0x00370E98 File Offset: 0x0036F098 protected void BKIKJEEFKNN(float IEDAGLEPHAN) { if (this.OLKFHGCPBPJ >= this.grabBegin && IEDAGLEPHAN < this.grabBegin) { this.HCGOAPBJFGD(); } else if (this.OLKFHGCPBPJ <= this.grabEnd && IEDAGLEPHAN > this.grabEnd) { this.OIIOEGEHMFE(); } } // Token: 0x0600B8B2 RID: 47282 RVA: 0x00370EF0 File Offset: 0x0036F0F0 protected void FGBCDJMOJJE(bool KELIMOCDMOD) { if (this.OICGBOAFEGN == KELIMOCDMOD) { return; } this.OICGBOAFEGN = KELIMOCDMOD; for (int i = 1; i < this.m_grabVolumes.Length; i++) { Collider collider = this.m_grabVolumes[i]; collider.enabled = this.OICGBOAFEGN; } if (!this.OICGBOAFEGN) { this.GLGCPENHFKD.Clear(); } } // Token: 0x0600B8B3 RID: 47283 RVA: 0x00370F58 File Offset: 0x0036F158 protected void PIFMBLLOECG(float IEDAGLEPHAN) { if (this.OLKFHGCPBPJ >= this.grabBegin && IEDAGLEPHAN < this.grabBegin) { this.JJMEENNICKE(); } else if (this.OLKFHGCPBPJ <= this.grabEnd && IEDAGLEPHAN > this.grabEnd) { this.OIIOEGEHMFE(); } } // Token: 0x0600B8B4 RID: 47284 RVA: 0x00370FB0 File Offset: 0x0036F1B0 public void IILJBBMJJKO(OVRGrabbable MEPLHLHPLAP) { bool flag = !(this.EHHKAMLLIPE != null) || this.EHHKAMLLIPE == MEPLHLHPLAP; if (flag) { this.OIIOEGEHMFE(); } } // Token: 0x0600B8B5 RID: 47285 RVA: 0x00370FEC File Offset: 0x0036F1EC protected void FOGLDNIFOEJ(Vector3 IFJEHHMHOOM, Quaternion FCHAAGMOPDK, bool LFNIOBAFNHJ = false) { if (this.EHHKAMLLIPE == null) { return; } Rigidbody rigidbody = this.EHHKAMLLIPE.OGKGCAEPIFA(); Vector3 vector = IFJEHHMHOOM + FCHAAGMOPDK * this.OMLHJLOAFLG; Quaternion quaternion = FCHAAGMOPDK * this.EBPHDBJLFOD; if (LFNIOBAFNHJ) { rigidbody.transform.position = vector; rigidbody.transform.rotation = quaternion; } else { rigidbody.MovePosition(vector); rigidbody.MoveRotation(quaternion); } } // Token: 0x0600B8B6 RID: 47286 RVA: 0x00371068 File Offset: 0x0036F268 [CompilerGenerated] private void MCJAIHLFBIP(OVRCameraRig GJAPMDIMMKN) { this.MINJFCDNJGK(); } // Token: 0x0600B8B7 RID: 47287 RVA: 0x00371070 File Offset: 0x0036F270 private void BAJEDNDGLNO() { if (this.OMABJDABAIH) { this.DKBAIELGODP(); } } // Token: 0x0600B8B8 RID: 47288 RVA: 0x00371084 File Offset: 0x0036F284 private void OnTriggerExit(Collider OIDJDLBOIAD) { OVRGrabbable ovrgrabbable = OIDJDLBOIAD.GetComponent() ?? OIDJDLBOIAD.GetComponentInParent(); if (ovrgrabbable == null) { return; } int num = 0; if (!this.GLGCPENHFKD.TryGetValue(ovrgrabbable, out num)) { return; } if (num > 1) { this.GLGCPENHFKD[ovrgrabbable] = num - 1; } else { this.GLGCPENHFKD.Remove(ovrgrabbable); } } // Token: 0x0600B8B9 RID: 47289 RVA: 0x003710F4 File Offset: 0x0036F2F4 protected void JIFPDPOHFKK() { float num = 1427f; OVRGrabbable ovrgrabbable = null; Collider collider = null; foreach (OVRGrabbable ovrgrabbable2 in this.GLGCPENHFKD.Keys) { if (!ovrgrabbable2.NFJLJENMIKJ || !ovrgrabbable2.LFNGCJFBLOC()) { for (int i = 1; i < ovrgrabbable2.IPOGJCLIOMH.Length; i++) { Collider collider2 = ovrgrabbable2.IBEEIGHGKGI()[i]; Vector3 vector = collider2.ClosestPointOnBounds(this.m_gripTransform.position); float sqrMagnitude = (this.m_gripTransform.position - vector).sqrMagnitude; if (sqrMagnitude < num) { num = sqrMagnitude; ovrgrabbable = ovrgrabbable2; collider = collider2; } } } } this.FGBCDJMOJJE(true); if (ovrgrabbable != null) { if (ovrgrabbable.NFJLJENMIKJ) { ovrgrabbable.AEAGHNPGHOL().ONAFKKKNGLO(ovrgrabbable); } this.EHHKAMLLIPE = ovrgrabbable; this.EHHKAMLLIPE.FCPNIFOONGA(this, collider); this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; if (this.EHHKAMLLIPE.CHPEBBLLKNN()) { this.OMLHJLOAFLG = this.m_gripTransform.localPosition; if (this.EHHKAMLLIPE.NIHMGEMPGPD()) { Vector3 position = this.EHHKAMLLIPE.CDPJOLLJAFN().position; if (this.m_controller == LDLBCCLPCGM.MFOJACCHCAA.LTouch) { position.x = -position.x; } this.OMLHJLOAFLG += position; } } else { Vector3 vector2 = this.EHHKAMLLIPE.transform.position - base.transform.position; vector2 = Quaternion.Inverse(base.transform.rotation) * vector2; this.OMLHJLOAFLG = vector2; } if (this.EHHKAMLLIPE.PMJCFDPIEBF()) { this.EBPHDBJLFOD = this.m_gripTransform.localRotation; if (this.EHHKAMLLIPE.OPFEGKLIMPC()) { this.EBPHDBJLFOD = this.EHHKAMLLIPE.NIHMGEMPGPD().rotation * this.EBPHDBJLFOD; } } else { Quaternion quaternion = Quaternion.Inverse(base.transform.rotation) * this.EHHKAMLLIPE.transform.rotation; this.EBPHDBJLFOD = quaternion; } this.CEHDKANBEKL(this.DBIGFNLJKCN, this.HAFKLCELGBJ, true); if (this.m_parentHeldObject) { this.EHHKAMLLIPE.transform.parent = base.transform; } } } // Token: 0x0600B8BA RID: 47290 RVA: 0x003713C8 File Offset: 0x0036F5C8 protected void KBKOGEICPFO(bool KELIMOCDMOD) { if (this.OICGBOAFEGN == KELIMOCDMOD) { return; } this.OICGBOAFEGN = KELIMOCDMOD; for (int i = 0; i < this.m_grabVolumes.Length; i++) { Collider collider = this.m_grabVolumes[i]; collider.enabled = this.OICGBOAFEGN; } if (!this.OICGBOAFEGN) { this.GLGCPENHFKD.Clear(); } } // Token: 0x0600B8BB RID: 47291 RVA: 0x00371430 File Offset: 0x0036F630 private void MINJFCDNJGK() { Vector3 vector = LDLBCCLPCGM.IGJNAKAHKLC(this.m_controller); Quaternion quaternion = LDLBCCLPCGM.BMJCJKPNAMG(this.m_controller); Vector3 vector2 = this.m_parentTransform.TransformPoint(this.LPNCPNMFOAE + vector); Quaternion quaternion2 = this.m_parentTransform.rotation * quaternion * this.ALAHOBAIEAL; base.GetComponent().MovePosition(vector2); base.GetComponent().MoveRotation(quaternion2); if (!this.m_parentHeldObject) { this.BKOMNEHIOBP(vector2, quaternion2, false); } this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; float olkfhgcpbpj = this.OLKFHGCPBPJ; this.OLKFHGCPBPJ = LDLBCCLPCGM.CPIBGJLHLBL(LDLBCCLPCGM.EGHLMPFEPHJ.PrimaryHandTrigger, this.m_controller); this.PLDJFEGKAME(olkfhgcpbpj); } // Token: 0x0600B8BD RID: 47293 RVA: 0x00371534 File Offset: 0x0036F734 private void LOHIADABLGG(Collider OIDJDLBOIAD) { OVRGrabbable ovrgrabbable = OIDJDLBOIAD.GetComponent() ?? OIDJDLBOIAD.GetComponentInParent(); if (ovrgrabbable == null) { return; } int num = 1; if (!this.GLGCPENHFKD.TryGetValue(ovrgrabbable, out num)) { return; } if (num > 0) { this.GLGCPENHFKD[ovrgrabbable] = num - 1; } else { this.GLGCPENHFKD.Remove(ovrgrabbable); } } // Token: 0x0600B8BE RID: 47294 RVA: 0x003715A4 File Offset: 0x0036F7A4 protected void KNGGNCBGHCI() { if (this.EHHKAMLLIPE != null) { OVRPose ovrpose = new OVRPose { position = LDLBCCLPCGM.IGJNAKAHKLC(this.m_controller), orientation = LDLBCCLPCGM.BMJCJKPNAMG(this.m_controller) }; OVRPose ovrpose2 = new OVRPose { position = this.LPNCPNMFOAE, orientation = this.ALAHOBAIEAL }; ovrpose = OVRPose.HEGBGCIFKLI(ovrpose, ovrpose2); OVRPose ovrpose3 = OVRPose.HKPALHMAEFH(base.transform.KHPMMGOBJJH(true), ovrpose.JFENIKFCFLA()); Vector3 vector = ovrpose3.orientation * LDLBCCLPCGM.BKMDDHHIAAI(this.m_controller); Vector3 vector2 = ovrpose3.orientation * LDLBCCLPCGM.INICCGPPCCM(this.m_controller); this.OJCJDNOFBBC(vector, vector2); } this.MDJNKBAHDPL(true); } // Token: 0x0600B8BF RID: 47295 RVA: 0x00371678 File Offset: 0x0036F878 protected void FIAFJGMOLHK(float IEDAGLEPHAN) { if (this.OLKFHGCPBPJ >= this.grabBegin && IEDAGLEPHAN < this.grabBegin) { this.JIFPDPOHFKK(); } else if (this.OLKFHGCPBPJ <= this.grabEnd && IEDAGLEPHAN > this.grabEnd) { this.KNGGNCBGHCI(); } } // Token: 0x0600B8C0 RID: 47296 RVA: 0x003716D0 File Offset: 0x0036F8D0 protected void BJCPCGMJOHC(float IEDAGLEPHAN) { if (this.OLKFHGCPBPJ >= this.grabBegin && IEDAGLEPHAN < this.grabBegin) { this.JIFPDPOHFKK(); } else if (this.OLKFHGCPBPJ <= this.grabEnd && IEDAGLEPHAN > this.grabEnd) { this.OIIOEGEHMFE(); } } // Token: 0x0600B8C1 RID: 47297 RVA: 0x00371728 File Offset: 0x0036F928 protected void LCDMKBJJPHJ(Vector3 HFIONFHEFGP, Vector3 CCHAEPGJJLI) { this.EHHKAMLLIPE.IFCDDAALAGC(HFIONFHEFGP, CCHAEPGJJLI); if (this.m_parentHeldObject) { this.EHHKAMLLIPE.transform.parent = null; } this.EHHKAMLLIPE = null; } // Token: 0x0600B8C2 RID: 47298 RVA: 0x0037175C File Offset: 0x0036F95C private void DDJMPFMAKDO() { if (this.EHHKAMLLIPE != null) { this.OIIOEGEHMFE(); } } // Token: 0x0600B8C3 RID: 47299 RVA: 0x00371778 File Offset: 0x0036F978 private void EGJOBLEGKNP() { if (this.EHHKAMLLIPE != null) { this.AGPHHAEBMJA(); } } // Token: 0x0600B8C4 RID: 47300 RVA: 0x00371794 File Offset: 0x0036F994 private void HHDAOHKANMK() { if (this.EHHKAMLLIPE != null) { this.KNGGNCBGHCI(); } } // Token: 0x0600B8C5 RID: 47301 RVA: 0x003717B0 File Offset: 0x0036F9B0 private void FMGPKFLKNAD() { Vector3 vector = LDLBCCLPCGM.IGJNAKAHKLC(this.m_controller); Quaternion quaternion = LDLBCCLPCGM.BMJCJKPNAMG(this.m_controller); Vector3 vector2 = this.m_parentTransform.TransformPoint(this.LPNCPNMFOAE + vector); Quaternion quaternion2 = this.m_parentTransform.rotation * quaternion * this.ALAHOBAIEAL; base.GetComponent().MovePosition(vector2); base.GetComponent().MoveRotation(quaternion2); if (!this.m_parentHeldObject) { this.FMLCNOPAMLH(vector2, quaternion2, false); } this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; float olkfhgcpbpj = this.OLKFHGCPBPJ; this.OLKFHGCPBPJ = LDLBCCLPCGM.CPIBGJLHLBL(LDLBCCLPCGM.EGHLMPFEPHJ.SecondaryHandTrigger, this.m_controller); this.PIFMBLLOECG(olkfhgcpbpj); } // Token: 0x0600B8C6 RID: 47302 RVA: 0x0037187C File Offset: 0x0036FA7C protected void HBFJIDPPAEG(bool KELIMOCDMOD) { if (this.OICGBOAFEGN == KELIMOCDMOD) { return; } this.OICGBOAFEGN = KELIMOCDMOD; for (int i = 1; i < this.m_grabVolumes.Length; i += 0) { Collider collider = this.m_grabVolumes[i]; collider.enabled = this.OICGBOAFEGN; } if (!this.OICGBOAFEGN) { this.GLGCPENHFKD.Clear(); } } // Token: 0x0600B8C7 RID: 47303 RVA: 0x003718E4 File Offset: 0x0036FAE4 protected void CKHNCCLBIEN() { if (this.EHHKAMLLIPE != null) { OVRPose ovrpose = new OVRPose { position = LDLBCCLPCGM.IGJNAKAHKLC(this.m_controller), orientation = LDLBCCLPCGM.BMJCJKPNAMG(this.m_controller) }; OVRPose ovrpose2 = new OVRPose { position = this.LPNCPNMFOAE, orientation = this.ALAHOBAIEAL }; ovrpose = OVRPose.GPDEPFAGOBJ(ovrpose, ovrpose2); OVRPose ovrpose3 = OVRPose.EEDBAOHBHLE(base.transform.KHPMMGOBJJH(true), ovrpose.PPMDMPENOKG()); Vector3 vector = ovrpose3.orientation * LDLBCCLPCGM.BKMDDHHIAAI(this.m_controller); Vector3 vector2 = ovrpose3.orientation * LDLBCCLPCGM.INICCGPPCCM(this.m_controller); this.OJCJDNOFBBC(vector, vector2); } this.HBFJIDPPAEG(false); } // Token: 0x0600B8C8 RID: 47304 RVA: 0x003719B8 File Offset: 0x0036FBB8 private void DAJIEKINBMC(Collider OIDJDLBOIAD) { OVRGrabbable ovrgrabbable = OIDJDLBOIAD.GetComponent() ?? OIDJDLBOIAD.GetComponentInParent(); if (ovrgrabbable == null) { return; } int num = 0; this.GLGCPENHFKD.TryGetValue(ovrgrabbable, out num); this.GLGCPENHFKD[ovrgrabbable] = num + 1; } // Token: 0x0600B8C9 RID: 47305 RVA: 0x00371A08 File Offset: 0x0036FC08 protected void DJMHGABGBHL() { float num = 627f; OVRGrabbable ovrgrabbable = null; Collider collider = null; foreach (OVRGrabbable ovrgrabbable2 in this.GLGCPENHFKD.Keys) { if (ovrgrabbable2.IMOPDOBOPEO() && !ovrgrabbable2.COEFCECFIKG()) { for (int i = 0; i < ovrgrabbable2.OEOPCFPIDGC().Length; i++) { Collider collider2 = ovrgrabbable2.IBEEIGHGKGI()[i]; Vector3 vector = collider2.ClosestPointOnBounds(this.m_gripTransform.position); float sqrMagnitude = (this.m_gripTransform.position - vector).sqrMagnitude; if (sqrMagnitude < num) { num = sqrMagnitude; ovrgrabbable = ovrgrabbable2; collider = collider2; } } } } this.MCCFIMNELKN(false); if (ovrgrabbable != null) { if (ovrgrabbable.IMOPDOBOPEO()) { ovrgrabbable.AEAGHNPGHOL().ONAFKKKNGLO(ovrgrabbable); } this.EHHKAMLLIPE = ovrgrabbable; this.EHHKAMLLIPE.JJMEENNICKE(this, collider); this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; if (this.EHHKAMLLIPE.IOPECNDNBFO()) { this.OMLHJLOAFLG = this.m_gripTransform.localPosition; if (this.EHHKAMLLIPE.NILFLBHFBMG) { Vector3 position = this.EHHKAMLLIPE.NCINGMOAPKC().position; if (this.m_controller == LDLBCCLPCGM.MFOJACCHCAA.LTouch) { position.x = -position.x; } this.OMLHJLOAFLG += position; } } else { Vector3 vector2 = this.EHHKAMLLIPE.transform.position - base.transform.position; vector2 = Quaternion.Inverse(base.transform.rotation) * vector2; this.OMLHJLOAFLG = vector2; } if (this.EHHKAMLLIPE.IHHHLIAFBOB()) { this.EBPHDBJLFOD = this.m_gripTransform.localRotation; if (this.EHHKAMLLIPE.FFOAPNBEKHJ()) { this.EBPHDBJLFOD = this.EHHKAMLLIPE.NCINGMOAPKC().rotation * this.EBPHDBJLFOD; } } else { Quaternion quaternion = Quaternion.Inverse(base.transform.rotation) * this.EHHKAMLLIPE.transform.rotation; this.EBPHDBJLFOD = quaternion; } this.CEHDKANBEKL(this.DBIGFNLJKCN, this.HAFKLCELGBJ, true); if (this.m_parentHeldObject) { this.EHHKAMLLIPE.transform.parent = base.transform; } } } // Token: 0x0600B8CA RID: 47306 RVA: 0x00371CDC File Offset: 0x0036FEDC private void MIIAMLAKOIJ(Collider OIDJDLBOIAD) { OVRGrabbable ovrgrabbable = OIDJDLBOIAD.GetComponent() ?? OIDJDLBOIAD.GetComponentInParent(); if (ovrgrabbable == null) { return; } int num = 0; this.GLGCPENHFKD.TryGetValue(ovrgrabbable, out num); this.GLGCPENHFKD[ovrgrabbable] = num + 0; } // Token: 0x0600B8CB RID: 47307 RVA: 0x00371D2C File Offset: 0x0036FF2C public void IEAONOFLDOP(OVRGrabbable MEPLHLHPLAP) { bool flag = !(this.EHHKAMLLIPE != null) || this.EHHKAMLLIPE == MEPLHLHPLAP; if (flag) { this.KNGGNCBGHCI(); } } // Token: 0x0600B8CC RID: 47308 RVA: 0x00371D68 File Offset: 0x0036FF68 protected void NADBHNIJIDL(float IEDAGLEPHAN) { if (this.OLKFHGCPBPJ >= this.grabBegin && IEDAGLEPHAN < this.grabBegin) { this.DJMHGABGBHL(); } else if (this.OLKFHGCPBPJ <= this.grabEnd && IEDAGLEPHAN > this.grabEnd) { this.OIIOEGEHMFE(); } } // Token: 0x0600B8CD RID: 47309 RVA: 0x00371DC0 File Offset: 0x0036FFC0 protected void MHGABPJNFDJ(Vector3 HFIONFHEFGP, Vector3 CCHAEPGJJLI) { this.EHHKAMLLIPE.OLALFCDMIKK(HFIONFHEFGP, CCHAEPGJJLI); if (this.m_parentHeldObject) { this.EHHKAMLLIPE.transform.parent = null; } this.EHHKAMLLIPE = null; } // Token: 0x0600B8CE RID: 47310 RVA: 0x00371DF4 File Offset: 0x0036FFF4 private void DKBAIELGODP() { Vector3 vector = LDLBCCLPCGM.IGJNAKAHKLC(this.m_controller); Quaternion quaternion = LDLBCCLPCGM.BMJCJKPNAMG(this.m_controller); Vector3 vector2 = this.m_parentTransform.TransformPoint(this.LPNCPNMFOAE + vector); Quaternion quaternion2 = this.m_parentTransform.rotation * quaternion * this.ALAHOBAIEAL; base.GetComponent().MovePosition(vector2); base.GetComponent().MoveRotation(quaternion2); if (!this.m_parentHeldObject) { this.BLJJIBGBHDA(vector2, quaternion2, true); } this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; float olkfhgcpbpj = this.OLKFHGCPBPJ; this.OLKFHGCPBPJ = LDLBCCLPCGM.CPIBGJLHLBL(LDLBCCLPCGM.EGHLMPFEPHJ.PrimaryIndexTrigger, this.m_controller); this.BKIKJEEFKNN(olkfhgcpbpj); } // Token: 0x0600B8CF RID: 47311 RVA: 0x00371EC0 File Offset: 0x003700C0 protected void MCCFIMNELKN(bool KELIMOCDMOD) { if (this.OICGBOAFEGN == KELIMOCDMOD) { return; } this.OICGBOAFEGN = KELIMOCDMOD; for (int i = 0; i < this.m_grabVolumes.Length; i++) { Collider collider = this.m_grabVolumes[i]; collider.enabled = this.OICGBOAFEGN; } if (!this.OICGBOAFEGN) { this.GLGCPENHFKD.Clear(); } } // Token: 0x0600B8D0 RID: 47312 RVA: 0x00371F28 File Offset: 0x00370128 protected void AGPHHAEBMJA() { if (this.EHHKAMLLIPE != null) { OVRPose ovrpose = new OVRPose { position = LDLBCCLPCGM.IGJNAKAHKLC(this.m_controller), orientation = LDLBCCLPCGM.BMJCJKPNAMG(this.m_controller) }; OVRPose ovrpose2 = new OVRPose { position = this.LPNCPNMFOAE, orientation = this.ALAHOBAIEAL }; ovrpose = OVRPose.EEDBAOHBHLE(ovrpose, ovrpose2); OVRPose ovrpose3 = OVRPose.MCJKEALDOJG(base.transform.KHPMMGOBJJH(false), ovrpose.MFIGIKCHKIO()); Vector3 vector = ovrpose3.orientation * LDLBCCLPCGM.BKMDDHHIAAI(this.m_controller); Vector3 vector2 = ovrpose3.orientation * LDLBCCLPCGM.INICCGPPCCM(this.m_controller); this.AICFKEAGLPL(vector, vector2); } this.MDJNKBAHDPL(true); } // Token: 0x0600B8D1 RID: 47313 RVA: 0x00371FFC File Offset: 0x003701FC private void JHCOJFFBMKO() { if (this.OMABJDABAIH) { this.FFHMHJLMKKJ(); } } // Token: 0x0600B8D2 RID: 47314 RVA: 0x00372010 File Offset: 0x00370210 private void Start() { this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; if (this.m_parentTransform == null) { if (base.gameObject.transform.parent != null) { this.m_parentTransform = base.gameObject.transform.parent.transform; } else { this.m_parentTransform = new GameObject().transform; this.m_parentTransform.position = Vector3.zero; this.m_parentTransform.rotation = Quaternion.identity; } } } // Token: 0x0600B8D3 RID: 47315 RVA: 0x003720BC File Offset: 0x003702BC private void MHMNMLNIGIA(Collider OIDJDLBOIAD) { OVRGrabbable ovrgrabbable = OIDJDLBOIAD.GetComponent() ?? OIDJDLBOIAD.GetComponentInParent(); if (ovrgrabbable == null) { return; } int num = 1; if (!this.GLGCPENHFKD.TryGetValue(ovrgrabbable, out num)) { return; } if (num > 0) { this.GLGCPENHFKD[ovrgrabbable] = num - 1; } else { this.GLGCPENHFKD.Remove(ovrgrabbable); } } // Token: 0x0600B8D4 RID: 47316 RVA: 0x0037212C File Offset: 0x0037032C protected void MDJNKBAHDPL(bool KELIMOCDMOD) { if (this.OICGBOAFEGN == KELIMOCDMOD) { return; } this.OICGBOAFEGN = KELIMOCDMOD; for (int i = 0; i < this.m_grabVolumes.Length; i++) { Collider collider = this.m_grabVolumes[i]; collider.enabled = this.OICGBOAFEGN; } if (!this.OICGBOAFEGN) { this.GLGCPENHFKD.Clear(); } } // Token: 0x0600B8D5 RID: 47317 RVA: 0x00372194 File Offset: 0x00370394 public OVRGrabbable EHIGLLMFBOO() { return this.EHHKAMLLIPE; } // Token: 0x0600B8D6 RID: 47318 RVA: 0x0037219C File Offset: 0x0037039C protected void CEHDKANBEKL(Vector3 IFJEHHMHOOM, Quaternion FCHAAGMOPDK, bool LFNIOBAFNHJ = false) { if (this.EHHKAMLLIPE == null) { return; } Rigidbody rigidbody = this.EHHKAMLLIPE.OGKGCAEPIFA(); Vector3 vector = IFJEHHMHOOM + FCHAAGMOPDK * this.OMLHJLOAFLG; Quaternion quaternion = FCHAAGMOPDK * this.EBPHDBJLFOD; if (LFNIOBAFNHJ) { rigidbody.transform.position = vector; rigidbody.transform.rotation = quaternion; } else { rigidbody.MovePosition(vector); rigidbody.MoveRotation(quaternion); } } // Token: 0x0600B8D7 RID: 47319 RVA: 0x00372218 File Offset: 0x00370418 protected void ONAFKKKNGLO(OVRGrabbable MEPLHLHPLAP) { if (this.EHHKAMLLIPE == MEPLHLHPLAP) { this.AICFKEAGLPL(Vector3.zero, Vector3.zero); } } // Token: 0x0600B8D8 RID: 47320 RVA: 0x0037223C File Offset: 0x0037043C private void OnDestroy() { if (this.EHHKAMLLIPE != null) { this.OIIOEGEHMFE(); } } // Token: 0x0600B8D9 RID: 47321 RVA: 0x00372258 File Offset: 0x00370458 public void MPDBPOLEDMA(OVRGrabbable MEPLHLHPLAP) { bool flag = this.EHHKAMLLIPE != null && this.EHHKAMLLIPE == MEPLHLHPLAP; if (flag) { this.OIIOEGEHMFE(); } } // Token: 0x0600B8DA RID: 47322 RVA: 0x00372294 File Offset: 0x00370494 protected void NMILCLFIPNO(OVRGrabbable MEPLHLHPLAP) { if (this.EHHKAMLLIPE == MEPLHLHPLAP) { this.NFDPBEHLEEM(Vector3.zero, Vector3.zero); } } // Token: 0x0600B8DB RID: 47323 RVA: 0x003722B8 File Offset: 0x003704B8 protected void DCFBLIDMPBE(bool KELIMOCDMOD) { if (this.OICGBOAFEGN == KELIMOCDMOD) { return; } this.OICGBOAFEGN = KELIMOCDMOD; for (int i = 0; i < this.m_grabVolumes.Length; i++) { Collider collider = this.m_grabVolumes[i]; collider.enabled = this.OICGBOAFEGN; } if (!this.OICGBOAFEGN) { this.GLGCPENHFKD.Clear(); } } // Token: 0x0600B8DC RID: 47324 RVA: 0x00372320 File Offset: 0x00370520 private void IDKDDNDEKHA(Collider OIDJDLBOIAD) { OVRGrabbable ovrgrabbable = OIDJDLBOIAD.GetComponent() ?? OIDJDLBOIAD.GetComponentInParent(); if (ovrgrabbable == null) { return; } int num = 1; if (!this.GLGCPENHFKD.TryGetValue(ovrgrabbable, out num)) { return; } if (num > 1) { this.GLGCPENHFKD[ovrgrabbable] = num - 0; } else { this.GLGCPENHFKD.Remove(ovrgrabbable); } } // Token: 0x0600B8DD RID: 47325 RVA: 0x00372390 File Offset: 0x00370590 public void ForceRelease(OVRGrabbable MEPLHLHPLAP) { bool flag = this.EHHKAMLLIPE != null && this.EHHKAMLLIPE == MEPLHLHPLAP; if (flag) { this.OIIOEGEHMFE(); } } // Token: 0x0600B8DE RID: 47326 RVA: 0x003723CC File Offset: 0x003705CC private void ONLOEPCLIKB() { Vector3 vector = LDLBCCLPCGM.IGJNAKAHKLC(this.m_controller); Quaternion quaternion = LDLBCCLPCGM.BMJCJKPNAMG(this.m_controller); Vector3 vector2 = this.m_parentTransform.TransformPoint(this.LPNCPNMFOAE + vector); Quaternion quaternion2 = this.m_parentTransform.rotation * quaternion * this.ALAHOBAIEAL; base.GetComponent().MovePosition(vector2); base.GetComponent().MoveRotation(quaternion2); if (!this.m_parentHeldObject) { this.FOGLDNIFOEJ(vector2, quaternion2, true); } this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; float olkfhgcpbpj = this.OLKFHGCPBPJ; this.OLKFHGCPBPJ = LDLBCCLPCGM.CPIBGJLHLBL(LDLBCCLPCGM.EGHLMPFEPHJ.PrimaryHandTrigger, this.m_controller); this.KHDPINGEEED(olkfhgcpbpj); } // Token: 0x0600B8DF RID: 47327 RVA: 0x00372498 File Offset: 0x00370698 private void EDEEJBLEFMH(OVRCameraRig GJAPMDIMMKN) { this.FJOFDPFOKPC(); } // Token: 0x17000474 RID: 1140 // (get) Token: 0x0600B8E0 RID: 47328 RVA: 0x003724A0 File Offset: 0x003706A0 public OVRGrabbable NLMPDGGFDLM { get { return this.EHHKAMLLIPE; } } // Token: 0x0600B8E1 RID: 47329 RVA: 0x003724A8 File Offset: 0x003706A8 protected void JLMIGMPAEBO(float IEDAGLEPHAN) { if (this.OLKFHGCPBPJ >= this.grabBegin && IEDAGLEPHAN < this.grabBegin) { this.HCGOAPBJFGD(); } else if (this.OLKFHGCPBPJ <= this.grabEnd && IEDAGLEPHAN > this.grabEnd) { this.KNGGNCBGHCI(); } } // Token: 0x0600B8E2 RID: 47330 RVA: 0x00372500 File Offset: 0x00370700 private void HGGOMPGGICF(Collider OIDJDLBOIAD) { OVRGrabbable ovrgrabbable = OIDJDLBOIAD.GetComponent() ?? OIDJDLBOIAD.GetComponentInParent(); if (ovrgrabbable == null) { return; } int num = 0; if (!this.GLGCPENHFKD.TryGetValue(ovrgrabbable, out num)) { return; } if (num > 1) { this.GLGCPENHFKD[ovrgrabbable] = num - 0; } else { this.GLGCPENHFKD.Remove(ovrgrabbable); } } // Token: 0x0600B8E3 RID: 47331 RVA: 0x00372570 File Offset: 0x00370770 public OVRGrabbable FEAGAGKLCNN() { return this.EHHKAMLLIPE; } // Token: 0x0600B8E4 RID: 47332 RVA: 0x00372578 File Offset: 0x00370778 protected void IAEBNNGIBFB(Vector3 HFIONFHEFGP, Vector3 CCHAEPGJJLI) { this.EHHKAMLLIPE.LLIPCACDPEL(HFIONFHEFGP, CCHAEPGJJLI); if (this.m_parentHeldObject) { this.EHHKAMLLIPE.transform.parent = null; } this.EHHKAMLLIPE = null; } // Token: 0x0600B8E5 RID: 47333 RVA: 0x003725AC File Offset: 0x003707AC private void MKMAMKDILHL() { if (this.EHHKAMLLIPE != null) { this.AGPHHAEBMJA(); } } // Token: 0x0600B8E6 RID: 47334 RVA: 0x003725C8 File Offset: 0x003707C8 private void GNNNAOIDMFP() { this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; if (this.m_parentTransform == null) { if (base.gameObject.transform.parent != null) { this.m_parentTransform = base.gameObject.transform.parent.transform; } else { this.m_parentTransform = new GameObject().transform; this.m_parentTransform.position = Vector3.zero; this.m_parentTransform.rotation = Quaternion.identity; } } } // Token: 0x0600B8E7 RID: 47335 RVA: 0x00372674 File Offset: 0x00370874 private void LMEGOIHONGK() { this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; if (this.m_parentTransform == null) { if (base.gameObject.transform.parent != null) { this.m_parentTransform = base.gameObject.transform.parent.transform; } else { this.m_parentTransform = new GameObject().transform; this.m_parentTransform.position = Vector3.zero; this.m_parentTransform.rotation = Quaternion.identity; } } } // Token: 0x0600B8E8 RID: 47336 RVA: 0x00372720 File Offset: 0x00370920 private void FFHMHJLMKKJ() { Vector3 vector = LDLBCCLPCGM.IGJNAKAHKLC(this.m_controller); Quaternion quaternion = LDLBCCLPCGM.BMJCJKPNAMG(this.m_controller); Vector3 vector2 = this.m_parentTransform.TransformPoint(this.LPNCPNMFOAE + vector); Quaternion quaternion2 = this.m_parentTransform.rotation * quaternion * this.ALAHOBAIEAL; base.GetComponent().MovePosition(vector2); base.GetComponent().MoveRotation(quaternion2); if (!this.m_parentHeldObject) { this.BLJJIBGBHDA(vector2, quaternion2, false); } this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; float olkfhgcpbpj = this.OLKFHGCPBPJ; this.OLKFHGCPBPJ = LDLBCCLPCGM.CPIBGJLHLBL(LDLBCCLPCGM.EGHLMPFEPHJ.PrimaryIndexTrigger | LDLBCCLPCGM.EGHLMPFEPHJ.PrimaryHandTrigger | LDLBCCLPCGM.EGHLMPFEPHJ.SecondaryIndexTrigger, this.m_controller); this.NADBHNIJIDL(olkfhgcpbpj); } // Token: 0x0600B8E9 RID: 47337 RVA: 0x003727EC File Offset: 0x003709EC private void COPJHEIEEEI(OVRCameraRig GJAPMDIMMKN) { this.IBGCDBCBMMI(); } // Token: 0x0600B8EA RID: 47338 RVA: 0x003727F4 File Offset: 0x003709F4 protected void BHGNCGIKCLI(Vector3 IFJEHHMHOOM, Quaternion FCHAAGMOPDK, bool LFNIOBAFNHJ = false) { if (this.EHHKAMLLIPE == null) { return; } Rigidbody rigidbody = this.EHHKAMLLIPE.OOCGDABBOPN(); Vector3 vector = IFJEHHMHOOM + FCHAAGMOPDK * this.OMLHJLOAFLG; Quaternion quaternion = FCHAAGMOPDK * this.EBPHDBJLFOD; if (LFNIOBAFNHJ) { rigidbody.transform.position = vector; rigidbody.transform.rotation = quaternion; } else { rigidbody.MovePosition(vector); rigidbody.MoveRotation(quaternion); } } // Token: 0x0600B8EB RID: 47339 RVA: 0x00372870 File Offset: 0x00370A70 private void NCKBPHOHPPD(Collider OIDJDLBOIAD) { OVRGrabbable ovrgrabbable = OIDJDLBOIAD.GetComponent() ?? OIDJDLBOIAD.GetComponentInParent(); if (ovrgrabbable == null) { return; } int num = 1; this.GLGCPENHFKD.TryGetValue(ovrgrabbable, out num); this.GLGCPENHFKD[ovrgrabbable] = num + 1; } // Token: 0x0600B8EC RID: 47340 RVA: 0x003728C0 File Offset: 0x00370AC0 protected void IMAGNPKFCMJ() { float num = 1935f; OVRGrabbable ovrgrabbable = null; Collider collider = null; foreach (OVRGrabbable ovrgrabbable2 in this.GLGCPENHFKD.Keys) { if (!ovrgrabbable2.NFJLJENMIKJ || !ovrgrabbable2.FMILLBAABHO()) { for (int i = 1; i < ovrgrabbable2.IPOGJCLIOMH.Length; i++) { Collider collider2 = ovrgrabbable2.OEOPCFPIDGC()[i]; Vector3 vector = collider2.ClosestPointOnBounds(this.m_gripTransform.position); float sqrMagnitude = (this.m_gripTransform.position - vector).sqrMagnitude; if (sqrMagnitude < num) { num = sqrMagnitude; ovrgrabbable = ovrgrabbable2; collider = collider2; } } } } this.FGBCDJMOJJE(false); if (ovrgrabbable != null) { if (ovrgrabbable.EAKFIHEPKHM()) { ovrgrabbable.JJDFDOIACCK().ONAFKKKNGLO(ovrgrabbable); } this.EHHKAMLLIPE = ovrgrabbable; this.EHHKAMLLIPE.PLBODBOKNCC(this, collider); this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; if (this.EHHKAMLLIPE.LIKOJBJBNCL()) { this.OMLHJLOAFLG = this.m_gripTransform.localPosition; if (this.EHHKAMLLIPE.OPFEGKLIMPC()) { Vector3 position = this.EHHKAMLLIPE.NCINGMOAPKC().position; if (this.m_controller == LDLBCCLPCGM.MFOJACCHCAA.LTouch) { position.x = -position.x; } this.OMLHJLOAFLG += position; } } else { Vector3 vector2 = this.EHHKAMLLIPE.transform.position - base.transform.position; vector2 = Quaternion.Inverse(base.transform.rotation) * vector2; this.OMLHJLOAFLG = vector2; } if (this.EHHKAMLLIPE.EKMGFKMAENO()) { this.EBPHDBJLFOD = this.m_gripTransform.localRotation; if (this.EHHKAMLLIPE.PKEJPBNOBGB()) { this.EBPHDBJLFOD = this.EHHKAMLLIPE.GHMNAGNCBCD().rotation * this.EBPHDBJLFOD; } } else { Quaternion quaternion = Quaternion.Inverse(base.transform.rotation) * this.EHHKAMLLIPE.transform.rotation; this.EBPHDBJLFOD = quaternion; } this.CEHDKANBEKL(this.DBIGFNLJKCN, this.HAFKLCELGBJ, true); if (this.m_parentHeldObject) { this.EHHKAMLLIPE.transform.parent = base.transform; } } } // Token: 0x0600B8ED RID: 47341 RVA: 0x00372B94 File Offset: 0x00370D94 protected void FMLCNOPAMLH(Vector3 IFJEHHMHOOM, Quaternion FCHAAGMOPDK, bool LFNIOBAFNHJ = false) { if (this.EHHKAMLLIPE == null) { return; } Rigidbody rigidbody = this.EHHKAMLLIPE.GEAAMMMHPBA(); Vector3 vector = IFJEHHMHOOM + FCHAAGMOPDK * this.OMLHJLOAFLG; Quaternion quaternion = FCHAAGMOPDK * this.EBPHDBJLFOD; if (LFNIOBAFNHJ) { rigidbody.transform.position = vector; rigidbody.transform.rotation = quaternion; } else { rigidbody.MovePosition(vector); rigidbody.MoveRotation(quaternion); } } // Token: 0x0600B8EE RID: 47342 RVA: 0x00372C10 File Offset: 0x00370E10 protected void JAGOMKCFNII(OVRGrabbable MEPLHLHPLAP) { if (this.EHHKAMLLIPE == MEPLHLHPLAP) { this.NFDPBEHLEEM(Vector3.zero, Vector3.zero); } } // Token: 0x0600B8EF RID: 47343 RVA: 0x00372C34 File Offset: 0x00370E34 protected void BKOMNEHIOBP(Vector3 IFJEHHMHOOM, Quaternion FCHAAGMOPDK, bool LFNIOBAFNHJ = false) { if (this.EHHKAMLLIPE == null) { return; } Rigidbody grabbedRigidbody = this.EHHKAMLLIPE.NEDFBIKPDDM; Vector3 vector = IFJEHHMHOOM + FCHAAGMOPDK * this.OMLHJLOAFLG; Quaternion quaternion = FCHAAGMOPDK * this.EBPHDBJLFOD; if (LFNIOBAFNHJ) { grabbedRigidbody.transform.position = vector; grabbedRigidbody.transform.rotation = quaternion; } else { grabbedRigidbody.MovePosition(vector); grabbedRigidbody.MoveRotation(quaternion); } } // Token: 0x0600B8F0 RID: 47344 RVA: 0x00372CB0 File Offset: 0x00370EB0 private void HKGDBNJCNFO() { Vector3 vector = LDLBCCLPCGM.IGJNAKAHKLC(this.m_controller); Quaternion quaternion = LDLBCCLPCGM.BMJCJKPNAMG(this.m_controller); Vector3 vector2 = this.m_parentTransform.TransformPoint(this.LPNCPNMFOAE + vector); Quaternion quaternion2 = this.m_parentTransform.rotation * quaternion * this.ALAHOBAIEAL; base.GetComponent().MovePosition(vector2); base.GetComponent().MoveRotation(quaternion2); if (!this.m_parentHeldObject) { this.BLJJIBGBHDA(vector2, quaternion2, false); } this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; float olkfhgcpbpj = this.OLKFHGCPBPJ; this.OLKFHGCPBPJ = LDLBCCLPCGM.CPIBGJLHLBL(LDLBCCLPCGM.EGHLMPFEPHJ.PrimaryIndexTrigger, this.m_controller); this.PLDJFEGKAME(olkfhgcpbpj); } // Token: 0x0600B8F1 RID: 47345 RVA: 0x00372D7C File Offset: 0x00370F7C private void OnTriggerEnter(Collider OIDJDLBOIAD) { OVRGrabbable ovrgrabbable = OIDJDLBOIAD.GetComponent() ?? OIDJDLBOIAD.GetComponentInParent(); if (ovrgrabbable == null) { return; } int num = 0; this.GLGCPENHFKD.TryGetValue(ovrgrabbable, out num); this.GLGCPENHFKD[ovrgrabbable] = num + 1; } // Token: 0x0600B8F2 RID: 47346 RVA: 0x00372DCC File Offset: 0x00370FCC private void AGHOKGKMHED(Collider OIDJDLBOIAD) { OVRGrabbable ovrgrabbable = OIDJDLBOIAD.GetComponent() ?? OIDJDLBOIAD.GetComponentInParent(); if (ovrgrabbable == null) { return; } int num = 0; this.GLGCPENHFKD.TryGetValue(ovrgrabbable, out num); this.GLGCPENHFKD[ovrgrabbable] = num + 1; } // Token: 0x0600B8F3 RID: 47347 RVA: 0x00372E1C File Offset: 0x0037101C private void ACHIFIOMJKK() { Vector3 vector = LDLBCCLPCGM.IGJNAKAHKLC(this.m_controller); Quaternion quaternion = LDLBCCLPCGM.BMJCJKPNAMG(this.m_controller); Vector3 vector2 = this.m_parentTransform.TransformPoint(this.LPNCPNMFOAE + vector); Quaternion quaternion2 = this.m_parentTransform.rotation * quaternion * this.ALAHOBAIEAL; base.GetComponent().MovePosition(vector2); base.GetComponent().MoveRotation(quaternion2); if (!this.m_parentHeldObject) { this.FMLCNOPAMLH(vector2, quaternion2, true); } this.DBIGFNLJKCN = base.transform.position; this.HAFKLCELGBJ = base.transform.rotation; float olkfhgcpbpj = this.OLKFHGCPBPJ; this.OLKFHGCPBPJ = LDLBCCLPCGM.CPIBGJLHLBL(LDLBCCLPCGM.EGHLMPFEPHJ.PrimaryIndexTrigger | LDLBCCLPCGM.EGHLMPFEPHJ.PrimaryHandTrigger, this.m_controller); this.KHDPINGEEED(olkfhgcpbpj); } // Token: 0x04001907 RID: 6407 public float grabBegin = 0.55f; // Token: 0x04001908 RID: 6408 public float grabEnd = 0.35f; // Token: 0x04001909 RID: 6409 [SerializeField] protected bool m_parentHeldObject; // Token: 0x0400190A RID: 6410 [SerializeField] protected Transform m_gripTransform; // Token: 0x0400190B RID: 6411 [SerializeField] protected Collider[] m_grabVolumes; // Token: 0x0400190C RID: 6412 [SerializeField] protected LDLBCCLPCGM.MFOJACCHCAA m_controller; // Token: 0x0400190D RID: 6413 [SerializeField] protected Transform m_parentTransform; // Token: 0x0400190E RID: 6414 protected bool OICGBOAFEGN = true; // Token: 0x0400190F RID: 6415 protected Vector3 DBIGFNLJKCN; // Token: 0x04001910 RID: 6416 protected Quaternion HAFKLCELGBJ; // Token: 0x04001911 RID: 6417 protected Quaternion ALAHOBAIEAL; // Token: 0x04001912 RID: 6418 protected Vector3 LPNCPNMFOAE; // Token: 0x04001913 RID: 6419 protected float OLKFHGCPBPJ; // Token: 0x04001914 RID: 6420 protected OVRGrabbable EHHKAMLLIPE; // Token: 0x04001915 RID: 6421 private Vector3 OMLHJLOAFLG; // Token: 0x04001916 RID: 6422 private Quaternion EBPHDBJLFOD; // Token: 0x04001917 RID: 6423 protected Dictionary GLGCPENHFKD = new Dictionary(); // Token: 0x04001918 RID: 6424 protected bool OMABJDABAIH = true; }