Search Unity

Colliders for Networked Objects

Discussion in 'Physics for ECS' started by Jawsarn, Jan 22, 2020.

  1. Jawsarn

    Jawsarn

    Joined:
    Jan 12, 2017
    Posts:
    245
    I have the problem of having a network object (ship) that can have different shapes, but I want to use the same underlying GhostEntity, so assigning the collision on both sides. I have two sets of colliders, one for dynamic collision, and one for static (which sits at it's instantiated place and reflects the interior). The collision is in two hierarchies of compound colliders and is currently created through a GO hierarchy and converted.

    Two Questions
    - How can I change the filter dynamically of the collides when adding it to the ghost? I.e. I want filters of the static part to be unique for each ghost.
    - Will spawning the collider as seperate entity, re-parenting the children, and adding mass, velocity, damping, collider and linkedEntityGroup to the GhostEntity be a bullet proof solution? Or will this mess up other things?