Questions tagged [collider]

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.

285 questions
0
votes
1 answer

Unity 2D collision not stopping if other gameobject destroys

I m coding a 2d platform game. In the game, there are allies and enemies walks toward each other. If they collide each other, their own timer script starts countdown and the health reducing by the time as periods. If a characters health equals to…
Burak Bekeç
  • 39
  • 1
  • 7
0
votes
0 answers

Jitter on object falling down on PC and android both

I have done everything to fall a gameobject fall from top like Piano Tiles but there is always like little glitch or lag no matter what both on PC and android. I have used all combination like: I used only 2d collider and move object downwards. I…
0
votes
2 answers

Is there a way to recalculate the polygon collider at runtime? and possibly with better accuracy?

so I have this game in which I have destructible terrain. my setup is that when terrain is destroyed a part of the terrain texture is made transparent, to act as a crater. after any kind of change takes place, I delete the polygon collider on the…
Captain Dando
  • 497
  • 2
  • 11
  • 30
0
votes
1 answer

When I run game in device player velocity cannot zero when die in unity

In my unity2D game run in device so player velocity set not zero when collide with ground and I use a FixedUpdate() function for player flap also my player flap on static position. void FixedUpdate () { // Jump if (isAlive) { if…
Chetan
  • 11
  • 4
0
votes
1 answer

Unity 5 Multiplayer collision glitches

I try to make a simple multiplayer example. It doesn't matter if i try it in 2d or in 3d the result is the same. I will describe it in 3D that's what I tried a least. I simple add two cylinders to a Scene and a ball. I set up a script for the Player…
AlexS
  • 21
  • 6
0
votes
1 answer

Get adjacent objects (tiles) using Colliders? (Unity)

I'm trying to make a script for every section of cable that detects adjacent cables through colliders. I'm making it with colliders because there are mechanisms such as switchers and I think it's easier by this way to detect which path the "light"…
0
votes
1 answer

Unity C# TouchScript - Overlapped collider detection issue

I'm working on a 2D non-game application. I used TouchScript to have all the multitouch gesture but I have an issue. In the application, i have the ability to open a lot of popup that are draggable, pinch resizable and we can rotate them. These…
0
votes
1 answer

Don't know how Collider works in Unity

I'm using a collider script to end the game when it hits an object. The code i have used is not working. Please help! using UnityEngine; using UnityEngine.SceneManagement; using System.Collections; public class Collider : MonoBehaviour { void…
Akila Randil
  • 205
  • 1
  • 10
0
votes
1 answer

optimizing a dynamic mesh for a collider

I have a dynamic mesh which is created and updated dynamically according to the game,and it has many vertices. However when I use it as a mesh for its collider, I get the warning that it has more then 255 polygons. I read it is what slows the game.…
SuzLy
  • 133
  • 1
  • 10
0
votes
1 answer

How to convert 3d model to solid color in unity?

I have a city 3d model as a folder. The folder includes .obj file, materials and textures. I try to create a virtual tour by walking on the roads. I place my camera on a street.My camera goes forward and back by clicking up and down keys. It rotates…
zakjma
  • 2,030
  • 12
  • 40
  • 81
0
votes
1 answer

Unity Button Click doesn't work When overlap a have collider2d object in another canvas

I am developing a 2d game with Unity. I have a popup settings dialog and When Player clicked settings button it coming to screen on the other objects. Game objects have got Collider2d component and If a button over an game object which has…
Savas Adar
  • 4,083
  • 3
  • 46
  • 54
0
votes
1 answer

Detect Collision for an instantly refreshed object

so i have an old code for a "Connect4" game it was written years ago, now i am having a big problem getting it results and rebuild them for a unity3D project. the problem is that every gameObject (i've managed to instanciate in the scene) is, meant…
0
votes
1 answer

Switching scenes in Unity C# after a short delay without the use of update

Title is self explanatory. I'm trying to switch scenes after a short delay WITHOUT using the update() function. The trigger is a collision between two objects which I have working, I also understand how to switch scenes. It is the delay after the…
Jon
  • 23
  • 1
  • 6
0
votes
1 answer

Check if items are overlapping

I have a few rooms which are placed randomly so I have to check if a room is overlapping. The rooms have a size of 10x10 and are for test reasons placed exactly side by side (they don't overlap in the scene). The Floor is a Transform which consists…
91378246
  • 488
  • 6
  • 14
0
votes
0 answers

Access Animator From Parent's Script - setTrigger

I have a file structure like: - Ball (CircleCollider 2D + RigidBody 2D) (BallScript.cs) as parent - BallGraphics (image + animations) as child - Pipe (BoxCollider2D + RigidBody2D) With this structure the ball collides the pipe successfully. It…
senty
  • 12,385
  • 28
  • 130
  • 260