Giter Club home page Giter Club logo

Comments (22)

ChuanXin-Unity avatar ChuanXin-Unity commented on July 27, 2024 4

Sorry, this is taking a lot longer than expected unfortunately. This issue has been fixed though finally, and will make its way to current Unity versions.

from 2d-extras.

Heathro avatar Heathro commented on July 27, 2024 2

Offset Distance parameter in Composite collider 2D to 0.05 works fine for me.

from 2d-extras.

TomMetaG avatar TomMetaG commented on July 27, 2024 1

Unfortunately, this fix appears to be creating a major issue with the composite colliders. In 2019.2.11, when using a Composite Collider 2D with a Tilemap Collider 2D, I'm unable to set an offset distance of zero. This causes the Composite Collider 2D to generate uneven lines, breaking collisions in my game. Is there a way to restore the previous Composite Collider 2D behavior, which generates straight lines between points?

from 2d-extras.

Mochnant avatar Mochnant commented on July 27, 2024

I've seem a similar problem with incorrect composite colliders, as well. When I toggle the used by composite, it leave gaps between the tiles which can cause issues.

composite collider issue

from 2d-extras.

ChuanXin-Unity avatar ChuanXin-Unity commented on July 27, 2024

We will check this out.

Also, are any custom rotations or transforms used when added Tiles to the Tilemap for these cases?

from 2d-extras.

ChuanXin-Unity avatar ChuanXin-Unity commented on July 27, 2024

Also, if this can be easily reproducible, could you file a Unity bug report with that project? Thanks!

from 2d-extras.

Mochnant avatar Mochnant commented on July 27, 2024

I think you're onto something, @ChuanXin-Unity!

All of the tiles that are causing issues for me in the above shot are set to Rotation Y = 180.

composite collider issue inspector

It is easily reproducible, as all it takes is toggling the Used by Composite flag and they appear. I'll file a bug.

from 2d-extras.

Seanba avatar Seanba commented on July 27, 2024

Hi there. Was there ever an update or work-around on this? I'm running into issues with the CompositeCollider2D leaving behind old collision geometry too.

from 2d-extras.

Mochnant avatar Mochnant commented on July 27, 2024

I've not heard any updates myself.

from 2d-extras.

MadCoderr avatar MadCoderr commented on July 27, 2024

I'm also having the same issue. No update yet, also submit a report

from 2d-extras.

maclark avatar maclark commented on July 27, 2024

Same issue :( waiting for update.

from 2d-extras.

Mochnant avatar Mochnant commented on July 27, 2024

Any updates, @ChuanXin-Unity?

from 2d-extras.

ChuanXin-Unity avatar ChuanXin-Unity commented on July 27, 2024

Hoping to resolve this for a 2018.3 backport.

from 2d-extras.

Mochnant avatar Mochnant commented on July 27, 2024

Great news, thank you. Does that include any sort of timeline or ETA?

from 2d-extras.

ChuanXin-Unity avatar ChuanXin-Unity commented on July 27, 2024

Sorry, nothing in particular. Backports to 2018.3 may take sometime due to validation. I will update the versions where the fix has landed here to keep everyone updated.

from 2d-extras.

zimpzon avatar zimpzon commented on July 27, 2024

Sorry, nothing in particular. Backports to 2018.3 may take sometime due to validation. I will update the versions where the fix has landed here to keep everyone updated.

Any news about this? I tried 2019.1b and it had the same issue.

from 2d-extras.

zimpzon avatar zimpzon commented on July 27, 2024

Dare I ask for en ETA? I don't see it listed as a known issue, so I wonder if it will be listed as a fix when it is released?

from 2d-extras.

ChuanXin-Unity avatar ChuanXin-Unity commented on July 27, 2024

Currently, the confirmed version with a system to handle these gaps would be Unity 2019.2.0a15. A 2019.1 version will be coming soon.

The Composite Collider 2D has an additional setting, Offset Distance, along with the existing Vertex distance to help deal with the gaps:
CC

from 2d-extras.

ChuanXin-Unity avatar ChuanXin-Unity commented on July 27, 2024

The 2019.1 version will be Unity 2019.1.2f1.

from 2d-extras.

John-Okleberry avatar John-Okleberry commented on July 27, 2024

I have an issue that may be somewhat similar but I'm not totally sure. My player floats in the air on top of something in a few spots but nothing is there. I tried deleting all layers in the tilemap in that location (actually it is happening in two locations near to each other). I verified that the ground collider is not present in that place. I can also hit my head on whatever the "nothing" is if I try to jump up to it (it appears to be sloped at an angle). The only tilemap piece that appears to be similar in shape is some background mountains but I don't recall ever using them in the area of my game where the issue is happening (not to mention I deleted all layers of the tilemap in this space so that shouldn't be an issue unless residual colliders remain like you are complaining of). Also, my raycast downward (to see if I'm grounded) appears to detect nothing (using a debug.Log message as well as being unable to jump again).

from 2d-extras.

ChuanXin-Unity avatar ChuanXin-Unity commented on July 27, 2024

@John-Okleberry Would it be possible to create a bug report using the Unity Bug Reporter when this issue occurs? This would be very helpful in order to find out what causes the issue. Thanks!

from 2d-extras.

ArHiFranki avatar ArHiFranki commented on July 27, 2024

The same issue is still in version 2021.1.28f1. Solution is set the Offset Distance in Composite Collider 2D greater or equal to 0.02. May be this parameter depends of pixel per unit of your tiles. In my case it was 31x31 pixel per unit.

from 2d-extras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.