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

Having trouble with Physics.IgnoreCollision().

$
0
0
I was trying to use http://docs.unity3d.com/ScriptReference/Physics.IgnoreCollision.html but i'm currently having problems. Right now what i'm trying to do is give a certain object permissions to go through another object. This is my code - var Player : GameObject; function Start () { Physics.IgnoreCollision(Player.collider, collider); } function Update () { } I attached this script to the object that i want "Player" to go through, and set "Player" as my player in the inspector (my player is currently a cube that can move around). But when i run it, my player still cant pass through the object i want it to pass through, do you know what i did wrong? P.S. - sorry if this is a newbie question, i have a lot to learn about unity related things and and trying my hardest, thanks!

Viewing all articles
Browse latest Browse all 148

Latest Images

Trending Articles



Latest Images

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