Quantcast
Channel: Questions in topic: "ignorecollision"
Browsing all 148 articles
Browse latest View live

It is possible to filter and ignore collisions by a Layermask?

My question is simple. Is there any way I can, using a layermask, define which physics layers this object can collide with. I'm not considering using Physics.IgnoreLayerCollision because I would like...

View Article


Problem with colliders in topdown 2d scene with many floors

Recently I ran into an complication in Unity that I don't know how to get out of. None of the solutions I came up with seems fully appropriate and requires some compromises. It looks like an engine...

View Article


How to make a trigger box collider SOLID (with physics)?

Hello. I'm trying to make a trigger gameobject that applies physics. I want my bullet to bounce of the target and I want to count how many times I've hit the target to keep score. At the moment I have...

View Article

IngoreCollision() does not work

I know this is a really basic question, but it is stumping me and I can't find an answer online anywhere. So I have an item -- just a cube with a box collider and rigidbody reshaped to look like a...

View Article

IgnoreLayerCollision not working

I have a bullet spread code which spawns 5 projectiles in the same position. In order to prevent the projectiles from colliding with each other, I used ```Physics.IgnoreLayerCollision```. The bullets...

View Article


How to use Triggers to allow my player to pass through a platform when...

So I'm trying to write a script that allow my player to jump from under a platform and go through it, but then land on it when falling down. I have used on Trigger Enter and Exit to control the...

View Article

Physics.IgnoreCollision does not seem to work as expected

Hi all, I am attempting to fix a Levitation Bug in my game, however is proving quite difficult, for some reason the Physics.IgnoreCollision() function doesn't seem to work as I expect it to work, I...

View Article

Ignore collision won't work on bullets

I know this was ask before and I've read all answeres to all questions, still, I'm stuck and I just can't find the error. I simply need a bullet prefab of my laser gun ignoring collision with the laser...

View Article

Browsing all 148 articles
Browse latest View live


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