Forum

> > Off Topic > Unity3d - Edge
ForenübersichtOff Topic-ÜbersichtEinloggen, um zu antworten

Englisch Unity3d - Edge

20 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Unity3d - Edge

RedizGaming
GAME BANNED Off Offline

Zitieren
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 >

alt Re: Unity3d - Edge

Ishara
User Off Offline

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

alt Re: Unity3d - Edge

RedizGaming
GAME BANNED Off Offline

Zitieren
@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

alt Re: Unity3d - Edge

Rainoth
Moderator Off Offline

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

alt Re: Unity3d - Edge

RedizGaming
GAME BANNED Off Offline

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

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

alt Re: Unity3d - Edge

Rainoth
Moderator Off Offline

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

alt Re: Unity3d - Edge

RedizGaming
GAME BANNED Off Offline

Zitieren
@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

alt Re: Unity3d - Edge

Rainoth
Moderator Off Offline

Zitieren
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?

alt Re: Unity3d - Edge

Jawohl
User Off Offline

Zitieren
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

alt Re: Unity3d - Edge

RedizGaming
GAME BANNED Off Offline

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

alt Re: Unity3d - Edge

Mephisto_
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antwortenOff Topic-ÜbersichtForenübersicht