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

Problem passing through bottom of platform

I created a script that checks if any platforms with the pass platform tag enters a collider surrounding the player object. Then I store the platforms in a list and ignore collision between all the...

View Article


ignoreing enemy collisions when hit, and turning the coliders back on

I'm trying to create a system when my player gets hit the player ignores all enemy collisions for a brief moment so the player could have a chance to escape. Then when the time period is over he can...

View Article


UNET: How to ignore collisions

Ok so I am instantiating a prefab, which works fine on both the host and all clients. Now my issue is as soon as I add a BoxCollider2D the instantiated prefab will right away collide with the player....

View Article

projectile must ignore collision with itself

i have this scirpt var projectile : Rigidbody; var speed = 100; var barrel : Transform; var shots : int = 0 ; var maxShots : int = 1 ; function Update () { fwd =...

View Article

IgnoreCollision not working

Is there anything I'm missing? Anything in the unity editor I need to check/uncheck? This just won't work for me.

View Article


Can't get Physics2D.IgnoreCollision to work on multiple objects

I'm making a 2D side scroller and the player character has a dashing action. I'd also like to have this dashing action ignore the colliders on specific objects, so the player can pass through them. For...

View Article

Physics.IgnoreCollision between rigidebody2d+polygone collider 2d and edge...

Hi, I'm new at Unity. And I try to ignore collision between my gamer(rigidebody+polygone collider 2d) and a simple edge collider 2d. I've try to put this code in my gamer and the bullet is the edge...

View Article

No errors console but Physics2D.IgnoreCollision does not work

Hi, I have no errors on my console but it doesn't ignore collision... I don't understand why. There is my code: public class gamer : MonoBehaviour { Rigidbody2D body; public Transform bulletPrefab;...

View Article


Object not passing through a collider properly

I'm doing a game where the player switches between layers and the level changes depending on the current layer. The game hides everything that isn't in the same layer as the player. Here is the...

View Article


How do I call Physics.IgnoreCollision properly in c# / Physics layer is not...

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...

View Article

Trigger with object only from top side.

Hello. I have a little problem with detect collision (or trigger) only from top side of the object. I will try to explain what I mean using picture. ![alt text][1] When I detect collision between...

View Article

Aim ignoring script

As i said before, i am making an Aim System and i am getting humiliated here because my knowledge about C# is poor and i can't do this in Javascript apparently. So here is my Script: using UnityEngine;...

View Article

Boolean and IgnoreCollision not working correctly

Heya, I'm trying to figure out why a certain bool isn't working right. What I'm trying to do is that if `bounceEnabled` is true (the instance starts as true), the player can bounce, and then it toggles...

View Article


Physics2D.IgnoreCollision not triggering properly

I have a code where I want to be able to jump from under a platform above the platform and be able to land on top of it. My trigger is a little lower and wider than the collider to allow me to do this...

View Article

Check if two objects are ignoring collision with each other

After using Physics2D.IgnoreCollision(collider1, collider2), is there a way to check whether those same two objects are ignoring collision with one another?

View Article


Layer Collision Matrix, Don't Ignore Triggers

I'm currently working on a 2D game, and I was wondering if there is anyway I can use the Layer Collision Matrix to disable collisions between layers, but not ignore triggers? ![alt text][1] [1]:...

View Article

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 Article


Bullets 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 Article

making 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 Article

ignore 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 Article
Browsing all 148 articles
Browse latest View live