Enabling collisions after a GameObject has started moving. Unity 2D
I'm working on a small 2D tile-based platformer. I have one 2D capsule GameObject that acts as a placeholder for the player. The "Player" has a Rigidbody and a Capsule collider attached. They drop into...
View ArticleRigidbody2D Player collider seems larger than displayed
![alt text][1] [1]: /storage/temp/196648-untitled-drawing.png Hey! I have an object with a BoxCollider2D and a Rigidbody2D, which is the blue box in the attached image. The black ground has a...
View Article2D Box Collider not Working
I've been working on a very simple game similar to Angry Birds, but even more simplified. It's a math game, so the only thing you need to change is the Velocity to solve the problem and win. I followed...
View ArticleHow to have separate colliders in a single tile map?
I have created a tile map which has a bunch of tiles which are supposed to get destroyed when hit by a ball, I added a tile map collider and the green boxes seem to appear around every tile separately...
View Articlehow can i change tile map collider2D's outline collider to shape?
(sorry for bad english) i was making a water in tile based 2D platformer game, but tile map collider gives me just outline collider. which can not fit with water.(water is passable, so character can go...
View Article2D Grayboxing Tool?
I'm currently trying to find an efficient way to prototype 2D levels. My game isn't based off of a grid so Tilemaps don't work, and I want a way to create a collider for the level that is also rendered...
View ArticleTilemap Collider 2D preventing objects from moving
As you can see in [the video][1] I've attached I/m using a Tilemap Collider and the player is moving on it's own, but the problem is that sometimes it just stops at random points and won't move. I'm...
View ArticleBridge Paradox @ 2D Collider Problem
How do you handle colliders in Unity when you're working in a plane and the problem has a third component? ![alt text][1] [1]: /storage/temp/184142-bridgeparadox.png As you can see in the picture a...
View ArticleScore only adds 1 then stops counting!!
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Ball : MonoBehaviour { public GameObject point; // Start is called before the first frame update void Start()...
View ArticleColliding with only one object at a time
Heyo! So, this may have been answered, but I cant find it... Say I have a group of objects lined up together, tight side-by-side. If I happen to collide between them, it will hit 2 at once. How do I...
View ArticleTrigger Collinder doesnt work with Input.GetKey
Hello guys, I'm trying to make a game where u can cut down trees, but when I tested my script it didn't work at all. This script is for cutting down trees. When I put TakeDmg and Destroytree in the...
View Articlestop moving object with collider and stay at the last position.
how to stop a moving game objects, i moving the objects by add a add force, and i give collider to the object and the target. and i detect the collosion, when object and target get contact, i stop it...
View Articlecollider passes through
hi, so I'm making a game with a hook systems, so the character moves using a rope, for the mechanism: I make an empty game object, and for the rope I use a line renderer with the origin of the...
View ArticleChange Bullets prefab as power
I am doing a 2d game and I want my player to be able to change bullets when he collides with an object(power) and destroy that object. I have a script and I was thinking that I need to implement 2...
View ArticleDetect collisons only on the border of a collider,How to detect collisions...
I am creating a 2D game and i want to implement two game objects with circular colliders to detect collisions as follows. Suppose an object is travelling from Point A to Point B then **See the image...
View ArticleGameObject with multiple collider2D,
In my game there are obstacles falling from the top of the screen at different speeds. Obstacles have physics and i'd like to have them interact with eachother (obstacles pushing other obstacles). The...
View ArticleHow to detect layerMask without collider?
Im trying to detect if an object is on a specific layer ![alt text][1] [1]: /storage/temp/145391-duda.png
View ArticlePolygon Collider 2D doesn't have the "edit collider" button avaliable.
The collider is created on a grid, I have successfully created box colliders, but, as the picture bellow shows, the polygon collider doesn't have the button to allow editing with a mouse, the full...
View ArticleCollision2D Points Outside of Collider Bounds
Hi there, I'm trying to detect the points at which two collider2Ds collide. My problem so far can be seen in [this video showing the error][1]. ---------- The white line traces the points where the...
View ArticleIs there a way to ignore OnMouseDown() if a collider is set to Trigger mode?
Hey there, so I'm making a tower defence game and using a circle collider set to "is trigger" to detect which enemies are in the range of a certain tower, but because of that if I click anywhere in the...
View Article