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

Having trouble with Physics.IgnoreCollision().

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

View Article


Physics2D.IgnoreCollision Not Working

Hey guys, the following script isn't working. When the collider enters the enemy, it doesnt ignore the collision, but collides and bounces off. ALL COLLISIONS WERE IGNORED!!!! and Enemy was hit are...

View Article


IgnoreLayerCollisions 2D works but it doesn't work?

void Update() { if(Input.GetKeyDown(KeyCode.Space)) { Physics2D.IgnoreLayerCollision(9, 10, true); } else if(rigBody.velocity.y < 0.05f) { Physics2D.IgnoreLayerCollision(9, 10, false); } } basically...

View Article

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

Reset Trigger State without completely ignore collision

Is ther a possibility to reset the trigger state, I mean to force the triggerexit but not completely ignore the collision forever?

View Article


Physics.IgnoreCollision not working

So I have the following script on a few empties with box colliders set over water so that if you are flying, you cannot fly over the water, but you can walk into the water. It works great for the...

View Article

How to ignore multiple colliders in IgnoreCollision

I have one game object with one collider, then another with 3 colliders(1 box and 2 circle), I use ignore collisions on both but only the box collider in the 3 collider game object is ignored, when I...

View Article

How would I create a raycast that ignores Character Controller

I am currently making an foot IK system right now for my game. But despite all of my dificulties the only problem I have is that whenever I enable my character controller the collider blocks off my...

View Article


Setting IgnoreCollision on Network spawned objects. (Unet)

I'm using the new Unet and got some problems with the NetworkServer.spawn method and collisions. [Command] public void CmdSpawnProjectile(Vector2 position, Vector2 direction) { GameObject proj =...

View Article


IgnoreCollision affecting children & unrelated objects when it should'nt ?

I've encountered what I think is a bug - sent a bug report about 1 week ago but I thought Id mention it here. **Scene :** - One moving cube "CubeA", one large flat cube for the ground "Base", one...

View Article

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


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