Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Collisions mesh skeleton rig

Discussion in 'Physics for ECS' started by shotoutgames, Jul 25, 2023.

  1. shotoutgames


    Dec 29, 2013
    I have a game object character that syncs with an entity in the subscenes.
    I have individual entities that follow bones. I.e. hand entity follows hand bone when punching. Very messy. Just wondering if there is finally an easier way .
    I tried setting the parent of all my child collider entities to the player entity but it doesn't follow the specific bones just the game object.
  2. daniel-holz


    Unity Technologies

    Sep 17, 2021
    Currently, rigid body entities do not follow their parents. For performance reasons, the engine assumes that the LocalTransform component of the rigid body entity corresponds to its world transformation.

    As such, during baking rigid bodies are unparented.

    To mitigate this you could have a system that sets the LocalTransform of select rigid bodies to the world transform of the entities they should follow. Said entities could be specified for the affected rigid bodies using a special FollowEntity component, which the said system would query and process.