Fix of collision layers

This commit is contained in:
SDraw 2025-06-29 15:42:29 +03:00
parent aef5af99af
commit 7f29079109
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
3 changed files with 17 additions and 6 deletions

View file

@ -149,7 +149,7 @@ namespace ml_ppu
Vector3 l_armPos = (l_avatarMatInv * m_armLeft.GetMatrix()).GetPosition();
m_collider = new GameObject("[Collider]").AddComponent<CapsuleCollider>();
m_collider.gameObject.layer = CVRLayers.PlayerClone;
m_collider.gameObject.layer = CVRLayers.PlayerLocal;
m_collider.transform.parent = this.transform;
m_collider.isTrigger = true;
m_collider.height = Vector3.Distance(l_hipsPos, new Vector3(0f, l_armPos.y, l_armPos.z));