Search Unity

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

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.     }