Quantcast
Channel: Questions in topic: "ignorecollision"
Viewing all articles
Browse latest Browse all 148

How do I call Physics.IgnoreCollision properly in c# / Physics layer is not being calling the collider

$
0
0
I have sphere collider on two gameobject and through when they get near each and the player. I went to project setting and uncheck the physics manager box that still didn't help and I also made script and attach to the enemy ai. Here is my script : using UnityEngine; using System.Collections; public class dd : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { Physics.IgnoreCollision(gameObject.collider, anotherGameObject.collider); Physics.IgnoreLayerCollision(1, 2); } }

Viewing all articles
Browse latest Browse all 148

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>