A Websocket signalling server written in the [go] language for WebRTC. For particle/object collision detection in simulations or games, please use [collision-detection] instead.
Questions tagged [collider]
285 questions
2
votes
1 answer
Turnserver showing WebSocket open error: WebSocket error after trying to join a room
My app has 1:1 video calling feature and for that I set up my own turnserver. The turnserver was running perfectly till yesterday. When I try to call from app, turnserver rejects. I tried turnserver url from browser, it shows something like this,…

Azad Mamun
- 69
- 2
- 7
2
votes
1 answer
Instantiated object appears in hierarchy but not on scene
I have a problem with instantiating game object in Unity. So the game is 2D, and this piece of code is for my collider hit. Part of it is in charge of instantiating an object at position where the ray has hit the collider. And it does, when i run…

Juan Don Guterez
- 37
- 5
2
votes
3 answers
Unity : is it possible to configure the scene for trigger colliders to only work with one layer?
Unity already manages the collisions and triggers well but I would like to know if I can optimise triggers to only react to a layer ?
Currently if I have many different objects with colliders in a scene I need to do :
void OnTriggerEnter (Collider…

Matthieu Raynaud de Fitte
- 2,001
- 3
- 25
- 49
2
votes
1 answer
Physics2D.Raycast Works On Some Objects But Doesn't Work On Others
So I'm trying to make a clone of Super Mario Bros for practice. I was creating the World 1-1. Everything was working great: I could move, enemies can move and be killed, and blocks can be interacted just like expected. But at this time I was using…

JockyCracker
- 95
- 8
2
votes
1 answer
How to change a material in Unity using a script on collison
I am currently making a mobile game in Unity3D. I want it so that when a ball with the tag 'Damage' is collided with, it will change the material of a damage indicator at the top of the screen. Is there an easy way to do this?
Thank you in advance.

Catty01
- 147
- 2
- 9
2
votes
1 answer
Unity collider shaking after hitting another collider
I have a SMALL a problem. In Unity 3D 2020 Beta, I've put a player with a sphere collider on it and some cubes (walls) with box colliders. I've added a player controller script to the player object.
I've put the camera above the plane where the…

Marc Vana
- 183
- 6
- 13
2
votes
1 answer
Unity - Display radius range
I would like to use a Sprite (of a circle outline) to display the range of an unit around it.
I am using
Collider2D[] colliders = Physics2D.OverlapCircleAll(transform.position, radius);
to detect collisions.
However, I have no clue what size…

Scipion
- 11,449
- 19
- 74
- 139
2
votes
2 answers
2D Raycast does not correctly detect overlapping colliders and ignores Sorting Layer
I want to be able to interact with my gameobjects while organising my sprites with Sorting Layer.
Right now, Sorting Layer do not affect my Raycast/collider situation and only change the visual appearance of my order.
In my Test scene I have two…

Vivien Lynn
- 345
- 4
- 14
2
votes
1 answer
3D player and 2D floor. I have collider problem
I have problem with this object's collider. Cannot find 3D collider for this floor. I cannot use 2D collider because my player is 3D player. When i put 2D collider, my player is falling. What should i do for it ?
I created half triangle and made…

Elenor
- 65
- 1
- 6
2
votes
1 answer
Unity: Collider not resizing with Sprite Shape by Script
I built a Random Generated Mini Game with SpriteShape Prefabs. The Random Generator moves and changes the Spline of the SpriteShape. But the Edge Collider 2D refreses its size only when I click on the Instantiated Prefab on the Hirarchy.
What can I…

dasKamel
- 59
- 6
2
votes
1 answer
OnTriggerEnter Calling Twice
I'm currently attempting to create a 2D game in Unity, and my Player has a box collider on his top half and a circle collider on his bottom half; this smoothens out ramps and stuff.
When I collect a gem, my OnTriggerEnter function calls twice…

A. Boy
- 47
- 1
- 5
2
votes
1 answer
2D Sprites in Isometric 3D Unity Project
The project works under a isometric orthographic camera, in a 3d space using 2d sprites.
What we are using are billboarding sprites into 3D colliders to archieve the 3d feeling.
The problem is that we don't really believe the way we are doing it…

Rubzet
- 189
- 1
- 2
- 15
2
votes
1 answer
Very weird position "snapping" with simple box colliders?
Im not even sure what is happening here but I'm just trying to make objects fall normally onto the floor - they need gravity/be able to be pushed around, but just fall onto a static floor object.
I have a cube and my floor mesh. Floor mesh has…

UserDude
- 323
- 1
- 3
- 18
2
votes
3 answers
How to BoxCast() without moving the box?
public static bool BoxCast(Vector3 center,
Vector3 halfExtents,
Vector3 direction,
Quaternion orientation = Quaternion.identity,
float…

blackhole
- 137
- 4
- 15
2
votes
1 answer
Unity can a trigger collider activate OnCollisionEnter
As the title says: can a trigger collider of an object trigger the "OnCollisionEnter" function of antoher object with a normal collider?

GabLog
- 71
- 1
- 3