Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Hybrid ECS Convert with Unity Physics, what is the intended behavior?

Discussion in 'DOTS Physics' started by judohurley, Aug 13, 2019.

  1. judohurley


    Feb 27, 2014
    Quick background: I'm building RenderMeshes and convex colliders dynamically and caching them for reuse. My objects collide with each other as expected.

    Observed issue when: Creating a Hybrid object in editor, assigning physics body and shapes and adding the ConvertToECS component.

    If I set the convert setting to the default "convert and destroy object", my hybrid object works just fine and interacts with the dynamically generated physics objects.

    However, if I set it to convert and inject object, the hybrid renderer does not draw the mesh and there's no apparent interaction with the physics Sim. The gameobject is visible but non-moving.if I disable it in inspector, it disappears and no hybrid render version exists in scene.

    My question is, what exactly should be happening when selecting create and inject on the converter? What is the intended used case for that feature?

    izzymhg, tlocicero3 and MostHated like this.