Make one object able to go through an object. But the other unable too?
Hello! I have a vent cover like object that has a collider. I want the player to be able to get through the collider. But make the enemys unable to. How do i do this?
View ArticleBullets colliding with Character Controller
Hi, I'm not even sure the title is the issue but that's my best guess so far. I have a first person shooter where I'm using a character controller for my player and I can shoot bullets from the gun...
View Articlemaking Navmesh Agents able to walk through each other?
im needing the Agents to not only ignore each other, but to walk through each other without altering each other's transform. a good example would be something like an mmo. everyone can walk through...
View Articleignore collision when bool false?
Is there a way to ignore collision with 2 objects if the bool is false and then when true the two object are allowed to collide. so for example: I have a bullet that only can deal damage if bool is...
View ArticleIgnoreCollision doesnt work?
if i click right mouse button the player and object can collid with each other` GameObject player; // Use this for initialization void Start () { player = GameObject.FindGameObjectWithTag("Player"); }...
View ArticleObject ignore collider with another - Please Help
So I have tried the following as suggested on another thread. void OnCollisionEnter(Collision collision) { if (collision.gameObject.tag == "theobjectToIgnore") {...
View ArticleIgnore Layer Collision
-Hi guys, I am trying to make a multiplayer game. I have particle effects to fire. I spawn particle effects from inside of player. I also have two layers named "LocalPlayer" and "RemotePlayer". But i...
View ArticlePhysics2D.IgnoreCollision() Not working the first time it collides.
I have a code on a projectile that is supposed to go through the gameObject tagged as "Hexagono" if it's transparency is lower that a certain value, so I'm using Physics2D.IgnoreCollision() but for...
View ArticleCan Particle System ignore a given collider?
Physics.IgnoreCollision is handy to prevent collision between two given colliders. But is there something similar for avoiding collision between particles and a given collider? I need particles from a...
View ArticleParticles: Avoid collision with parent's collider
Hello there; I have a particle system that's a child of a Enemy entity. I have particle collisions activated, but some particles collide with the Enemy self collider. All I have found in the web about...
View ArticlePlayer Collider isn't found by Physics2D
I am trying to have a bullet fly out my ship. However, the bullet doesn't move and I think I have the error down to the fact, that it collides with my ship. This is the Firing-Coroutine: IEnumerator...
View ArticleHow to have a particle system Ignore collision with objects
I have a particle system that I want to collide with all objects in the world except what I decide. I made a script for this, but I need a little help with it. Here is the script { public Collider...
View ArticleMake only the Player object collide with another object
I would like to make only the player object able to collide with a simple box collider meant to keep the player from falling below the camera. All other objects should be able to pass through the box...
View ArticleCan't make bullet ignore colisions
I want to force the bullets to pass through the platforms in case they fall on top of them So I use this code: private void OnCollisionEnter(Collision collision) { int colliderLayerMask =...
View ArticleHow to detect if collisions are being ignored unity 2018
In unity 2019 Unity exposed [Physics.GetIngoreCollision()][1]; How would one go about doing this in unity 2018 in a clean way? [1]:...
View ArticleIgnoreCollision with Particle System
Is it possible to IgnoreCollision between a Rigidbody and a ParticleSystem? Or anything I can do after I detect the collision that I want to ignore? PS: Like in IgnoreCollision() I need the case that...
View ArticleCollision Layer Ignoring Script Logic -- If && statements not working correctly
Hello! I have a scripting problem that deals with ignoring collision layers. Briefly, I have two static gameobjects with mesh colliders and portions of their meshes overlap each other. This is...
View ArticleIgnore Collision problem
Hello. Currently I'm having a problem with 3D collisions. One of my player characters has the ability to melt into water and pass through other characters. How can I implement this? The only option I...
View Article[2D] Is it possible to un-ignore collisions between colliders?
Hello everyone! I am creating a game in which, at certain moment, I need to make the player ignore certain colliders, for this I have implemented this simple code based on game object tag: public...
View Article2d collision matrix not working with user layers
as the question suggests when trying to cause collision ignore with the collision matrix on user layers they collide anyways but when using builtin layers it works. using 2019.2.11.f1
View ArticleHow to ignore collisions with certain objects under a condition temporarily?
I have a player with obstacles on the track. Normally, if the player collided with the object, the player would take damage or do whatever to slow down his progress, but if the player has a powerup, I...
View ArticleCollision that doesn't apply force between certain rigidbodies
I have a projectile object that uses a rigidbody and physics. The projectiles collide with other rigidbodies in the scene. However, I need collisions between projectiles to provide a collision callback...
View ArticleIt 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 ArticleProblem 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 ArticleHow 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 ArticleIngoreCollision() 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 ArticleIgnoreLayerCollision 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 ArticleHow 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 ArticlePhysics.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 ArticleIgnore 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