one way collider platform unity2d,One-way collision on tilemap collider not...
Hello there! I am very new to Unity and I am trying to make a 2d platformer. The problem i'm having is that my one way colliders are not working. After watching tons of YouTube videos about one way...
View ArticleonMouseOver Not working properly
Hi everyone, I have looked through many threads in reference to onMouseOver not working properly but none of the solutions have worked properly for me. My script is on an empty object with a 2D polygon...
View Article2D platformer, checking and changing collider for animation
I have many animations shiftings like idle - crouch - run - wall climb etc.. that needs a different size and off set for the general collider. For now im using box collider and i was wandering how...
View ArticleProblem with collider2D crosses other collider2d
I'm using a collider2D for my character and another collider2D for the floor and everything works perfect, but when my character falls from a great height, the character's collider2D crosses part of...
View ArticleCollider problems?
Hey Unity Forum. I have this issue with my game where my avatar kinda falls down into the tile object when i jump around for a short time. I am not sure why he does so. When I check "Used by composite"...
View ArticleProgrammatically create another shape in the same PolygonCollider2D
Is there a way to create a PolygonCollider2D with few shapes from code?
View ArticleHow can I edit or change Edge collider2d while the Animation is going...
,How can I edit or change Edge collider2d while the Animation is going on???
View ArticleCollider that can perfectly fit the shape of a sprite?
I'm trying to create the collision for one of my maps. However, I've looked online for the last hour and found nothing to answer my problem. I'm creating a tile-based game, and I want perfect collision...
View ArticleTrouble with composite and polygon collider in player
Hi all. I mixed polygon and composite colliders into a player sprite, and it fixed to the player's shape pretty well , but this player didn´t collide with tilemap surface. I realized it was by adding...
View ArticleHow can I resize objects with components flexibly?
I'm having a hard time aligning the size of my objects and its components and children when resizing them. I want to be able to scale and object, its collider, its child with a second collider and...
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 ArticleEnabling 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 Article