Search Unity

Current approach to Skinned Mesh in ECS?

Discussion in 'Entity Component System' started by illinar, Sep 16, 2019.

  1. illinar

    illinar

    Joined:
    Apr 6, 2011
    Posts:
    863
    Failed to find any information on how to do a skinned mesh in ECS. I need a ragdoll with ECS physics.

    What's the current recommended approach? I'd like to at least avoid having transforms for bones.
     
  2. ajaxlex

    ajaxlex

    Joined:
    Jul 15, 2016
    Posts:
    38
  3. illinar

    illinar

    Joined:
    Apr 6, 2011
    Posts:
    863
    Thanks, but I saw that, and it seems to be just baked animation. I need a ragdoll.

    Is there at least a way to set bone positions directly (without transforms) in unity?
     
    Deleted User likes this.
  4. 8bitgoose

    8bitgoose

    Joined:
    Dec 28, 2014
    Posts:
    448
    Until Unity releases a skinned mesh renderer system for Unity ECS, you are either going to have to write your own or use a hybrid approach where the physics and skinning is done in monobehaviour and everything else is done in ECS.
     
  5. illinar

    illinar

    Joined:
    Apr 6, 2011
    Posts:
    863
    Yes, I see. I could live with one skinned mesh, but having a bunch of transforms for bones is not that great and they allegedly slow down skinning performance. It's probably nothing to worry about in my case but I'm curious now if I could update bindposes every frame instead of having bones exposed as transforms..
     
  6. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    3,356
    The DOTS animation system was supposed to be in preview around the end of the year. And with Unite hitting, well you can take bets on what they might be announcing.
     
    illinar likes this.