Search Unity

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

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice
  3. Improve your project's performance with our new guide on profiling in Unity.
    Dismiss Notice

Colliders for Networked Objects

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

  1. Jawsarn

    Jawsarn

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