ToriaAssets/Imports/UMA/Content/Capes/Example/ExampleCollisionMatrixFixer.cs
2026-05-06 15:07:56 +02:00

19 lines
477 B
C#

using UnityEngine;
using System.Collections;
public class ExampleCollisionMatrixFixer : MonoBehaviour
{
private int _defaultRagdollLayer = 22;
// Use this for initialization
void Start ()
{
for (int i = 8; i < 32; i++)
{
if( i != _defaultRagdollLayer )
Physics.IgnoreLayerCollision(_defaultRagdollLayer, i, true);
}
Physics.IgnoreLayerCollision(_defaultRagdollLayer, _defaultRagdollLayer, false);
}
}