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

ignore collision question

I am trying to get a projectile with a rigidbody to collide with a box with a rigidbody. after the projectile collides with the box, I need the projectile to instantiate itself in the direction of the...

View Article


Ignore individual collisions between two objects

I want to ignore collisions between an object and a special class of objects only when the collision contact point meets a few criteria. In other words: function OnCollisionEnter(other : Collision) {...

View Article


How to stop an Interactive Cloth colliding with box collider

I've implemented a netting for a goal which I have eventually got working in a way which I am happy with. However to get the correct reaction I have set the Thickness to 0.55. The problem that this...

View Article

ignoreCollision information disappearing for prefab'd objects

Hi all, I've been working on a game with several characters. In one script, attached to a gameobject in all our scenes, we set the colliders on those characters to ignore collisions with one another....

View Article

Physics.IgnoreCollision on layers

Hello, I am trying to implement a wall mounting system for my FPS. What I have is a box trigger near the edge of a rooftop (put in a layer called "Mount"), and if the player is inside the box trigger...

View Article


IgnoreCollision after a collision takes place.

So with no luck I been trying to cause a projectile that hits enemies only once before ignoring it. Of course since this projectile sticks around for a moment, it can't just ignore the collisions of...

View Article

Code works fine until I turn the object it interacts with into a prefab.

Hi, I'm new to Unity and working on a 2.5D platformer as my first project. With some Google-fu and the help of already answered topics on this very forum, I've managed to figure out how to create...

View Article

How to ignore a raycast collision with a particular object?

I have a raycast and there can be multiple objects in front of the object that casts the ray. I want to ignore some of the objects, say object A (tag). In the below situation, I want the raycast to hit...

View Article


Ignore collision between character controller and a rigid body object

How would i ignore collision between the two colliders... thanks:)

View Article


Ignoring collision on parent but not children

I've got a number of projectile rigidbodies, and a group of character controllers. These character controller colliders are used ONLY for traversing the terrain, and within the character controllers...

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