Forum

> > Off Topic > Unity3d - Edge
Forums overviewOff Topic overviewLog in to reply

English Unity3d - Edge

20 replies
Page
To the start Previous 1 2 Next To the start

old Unity3d - Edge

RedizGaming
GAME BANNED Off Offline

Quote
Hello guys! , well im making a 2d game on unity , but i have one error.

When the player collides with "edge collider 2d" this does not happen, but when arriving at a corner, passes freely. Could you help me ?

Spoiler >


Spoiler >

old Re: Unity3d - Edge

Ishara
User Off Offline

Quote
Don't get me wrong, but you should ask about this on a Unity Forum, not here.

old Re: Unity3d - Edge

RedizGaming
GAME BANNED Off Offline

Quote
@user Ishara: I asked in the forum of steam, but, nobody answers anything, my friends also did it and we did not get any answer. That's why I asked auqi

old Re: Unity3d - Edge

Rainoth
Moderator Off Offline

Quote
Honestly, those screenshots don't really tell me anything. For starters, explain what each thing in your screenshots is and what colliders it uses.

old Re: Unity3d - Edge

RedizGaming
GAME BANNED Off Offline

Quote
@user Jawohl: @user Rainoth:
there was the problem on a video ->

[url=https://www.youtube.com/watch?v=hBRmJz5DwOI&feature=youtu.be[/url]
edited 1×, last 20.12.16 10:48:26 am

old Re: Unity3d - Edge

Rainoth
Moderator Off Offline

Quote
Have you tried using Physics2D circle collider instead? I don't see why you'd want to use edge colider in this case.

old Re: Unity3d - Edge

RedizGaming
GAME BANNED Off Offline

Quote
@user Rainoth:
i just use polygon collider on players
EdgeCollider2D on map and some scripts .
but the problem was on the corners.

When the corner of the two "EdgeCollider2D" are together, the player can escape by that corner

old Re: Unity3d - Edge

Rainoth
Moderator Off Offline

Quote
I'm not asking what you're using. I'm asking why you're NOT using circle colliders when all your graphics are made up of circles.

You wrote "the problem was". So you fixed it? What was the problem then?

old Re: Unity3d - Edge

Jawohl
User Off Offline

Quote
problem here? your trying to collide an object within an object; why not try to manually place the self draw colliders around the object? should work then

old Re: Unity3d - Edge

RedizGaming
GAME BANNED Off Offline

Quote
@user Rainoth: sorry , i don't manage correctly the english , i just want to said : the problem IS on the corners of the EdgeCollider2D

old Re: Unity3d - Edge

Mephisto_
User Off Offline

Quote
You could just not use any colliders and just check in your Update method wether the distance (squared) between the player and the center of the circle is greater than the (squared) radius of the circle and if thats the case, resolve your collision.
To the start Previous 1 2 Next To the start
Log in to replyOff Topic overviewForums overview