Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved CollisionFilter - Authoring

Discussion in 'Physics for ECS' started by wroniasty, May 17, 2023.

  1. wroniasty

    wroniasty

    Joined:
    Feb 2, 2020
    Posts:
    4
    A noob question here.

    As I understand the CollisionFilter is contained internally in the PhysicsCollider component, but I'm struggling to find any docs/examples on how to actually assign the CollisionFilter values to new entities.

    Let's say I have a Prefab with a MeshCollider, I'm converting it to an Entity Prefab in a baker. What is the preferred way of setting CollidesWith/BelongsTo/GroupIndex in both editor and code ?
     
    KANIYO and toomasio like this.
  2. toomasio

    toomasio

    Joined:
    Nov 19, 2013
    Posts:
    195
    Having the same issue...PhysicsCategoryTags seem to be gone in 1.0.8
     
    KANIYO likes this.
  3. toomasio

    toomasio

    Joined:
    Nov 19, 2013
    Posts:
    195
    I think since they are combining the physics authoring workflow...looks like a simple LayerMask to uint would work for the CollisionFilter. Someone correct me if I am wrong.
     
  4. KANIYO

    KANIYO

    Joined:
    Nov 12, 2020
    Posts:
    25
    Last edited: May 29, 2023
  5. OUTTAHERE

    OUTTAHERE

    Joined:
    Sep 23, 2013
    Posts:
    656
    Great, make LayerMask even more crowded. :(
     
  6. daniel-holz

    daniel-holz

    Unity Technologies

    Joined:
    Sep 17, 2021
    Posts:
    213

    Attached Files:

    toomasio likes this.