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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Colliders for Networked Objects

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

  1. Jawsarn

    Jawsarn

    Joined:
    Jan 12, 2017
    Posts:
    208
    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?