mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-05 03:19:23 +00:00
Fix of collision layers
This commit is contained in:
parent
aef5af99af
commit
7f29079109
3 changed files with 17 additions and 6 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue