2D A few objects Ignoring Collision causing insane lag
I have some enemies that should not be colliding with each other, so I used the Ignore-collision matrix. However, when only around 5 enemies or so collide with each other while moving, it drops the...
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 ArticleIgnore collision failed. Both colliders need to be active
I instantiate a ball in a gameObject script of a character so that the character has a ball to play with. I try to ignore collisions between the ball and the gameObject and when I do I get this error....
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 Article