Search Unity

Feedback CopyTransformToGameObject with option to ignore rotation.

Discussion in 'Entity Component System' started by sheikhg1900, Dec 28, 2021.

  1. sheikhg1900

    sheikhg1900

    Joined:
    Sep 13, 2021
    Posts:
    8
    CopyTransformToGameObject should have a field that can be used to ignore rotation data. It will help to set a Virtual Camera following a game object more smoothly.

    Code (CSharp):
    1.     public struct CopyTransformToGameObject : IComponentData {
    2.           bool translation,
    3.           bool rotation,
    4.     }