Questions tagged [collider]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
70 views

Get number of sides of a shape created with LineRenderer in Unity

In my game I'm using LineRenderer to draw a line at every mouse click. As you can see, everytime the lines collides with itself it creates a new shape. I'm able ...
0
votes
1answer
5k views

A trigger collider in Unity doesn't allow the player to pass through

It's my understanding that checking "Is Trigger" on a collider should allow rigid bodies to pass through without collision prevention, but my trigger isn't doing that consistently. The player cannot ...
1
vote
2answers
556 views

It lags when it collides. Help? :(

I am trying (and believing) to make a game of pong. I have got a slightly decent working game. I haven't implemented the scoreboard or AI yet because I want the physics to work first. I am trying to ...
0
votes
1answer
250 views

Trouble with assigning a model's own mesh to a mesh collider in Unity

I'm trying to use a mesh collider on the player's avatar, rather than the box collider. I've added the mesh collider to the game object (which also has a rigid body) and selected the "convex" ...
1
vote
1answer
250 views

Is Trigger Colliders not ignored

I am working on a 2D Plattformer with melee attacks. The player is using a Kinematic Rigid Body and a Capsule Collider. Movement (even in slopes), jumping and and collission are working fine. My ...
0
votes
2answers
26 views

how to modify multiples BoxCollider on a same game object?

I have an game object with multiples BoxCollider attached to it, is there a way to get all the BoxCollider to an array so that I could modify their value individually ?
-2
votes
1answer
410 views

Which collider should I use for a bucket?

I have a bucket, and I want a ball to be able to enter it. I'm facing a problem: Unity mesh collider seems not work with concave object... is that true? How can I solve this?
0
votes
2answers
45 views

Unity collision help

So my problem is this: I have a block, which is used as a "pointer block" to show where a block will be spawned. It will be green if it isn't colliding anyone, meaning you can spawn a block. It gets ...
1
vote
1answer
2k views

My collider is not following my humanoid animation: how to do ?

I've a "Zombie" charachter and the following hirearchy: I put a Capsule collider on parent Zombie_01. When I kill the zombie, my "Zombie dead" animation is played, Zombie fall to ground, but the ...
1
vote
1answer
528 views

How to ignore collisions of triggers after first collision of trigger until OnTriggerExit of first collision of trigger?

There is are white and red two teams of tank which are auto spawning in certain time interval. both red and white type of tanks have triggers so when red and white tank come close enough, ...
1
vote
1answer
524 views

Unity - An unwanted Collider , far too big , being added to meshes without reason and I cannot remove it

so I have a game in progress that is very similar to Asteroids. I was using spheres as primitive game objects and it all works perfectly in this case, but I need to be able to rotate the ship's model, ...
1
vote
1answer
94 views

undetected colission

I'm doing a simple grid based game, where the player should only be able to move on the grey cells. It works quite ok, but in this simple scenario, the player is able to walk through Wall(1), although ...
5
votes
3answers
20k views

Unity: How is a Mesh Collider “performance expensive”?

Do Mesh Colliders slow down performance simply by existing or only when they are colliding? Do they directly impact FPS or do they slow down the in-game physics?
3
votes
0answers
67 views

Unity: Messages in Compound Colliders

Lets say I have a 2D character with two colliders: a circle collider that represents the feet, and a box collider that represents the body. Lets say that the character is currently standing on the ...
3
votes
1answer
2k views

Merging box colliders for optimization

Look at the picture. The figure on the left shows the individual box colliders in green. The yellow boxes on the right are the results of the optimization of the original box colliders. What is the ...
1
vote
1answer
134 views

Collider does not call callback functions

I have a script that will create new GameObjects and will place it where the mouse is placed on the terrain. Now I need to have a check for collision on other already placed GameObjects on the field. ...
1
vote
1answer
31 views

Fixing collider for existing scene

I'm trying to add collider to the 3D scene. I have added mesh collider to the floor but I see the character is still floating up when I play. How can I edit this collider. I don't see any edit ...
0
votes
1answer
1k views

Problems with object collision detection using mesh colliders in unity

So I'm working on a project and I need to detect when an empty object with a mesh attached to it collides with another object. Essentially, I want to know when the mesh is touching a cube. I've tried ...
1
vote
2answers
325 views

Nestling into contact with a group of physics objects without exerting forces on them

I'm making a pool game, and would like the circle (imaginary) to be in contact with the table and balls, and to fit perfectly as a ball would. Now I thought I would use Rigidbody and lerp the ...
1
vote
1answer
71 views

Every Item is colliding but 1

In my game I have a BULLET, MOONS, STARS, and A SHIP. I shoot bullets from the ship and hit stars or moons and collisions occur. Yet when a moon runs into my ship there is no detection even though I ...
1
vote
0answers
130 views

Detect when any part of a collider leaves a trigger zone on Unity 3D

I've searched all over for a simple solution on this, and found posts as old as 2011, with a bunch of hackish ways to badly work this out. I want to detect when ANY part of a collider leaves a ...
0
votes
0answers
726 views

Unity Generating PolygonCollider from mesh

I generated a procedural mesh using marching squares and the MeshFilter component (it's 2 dimensional). Now I got the point that I need do collision detection with ...

1 2
3