Search Unity

Question Is this possible with visual scripting??

Discussion in 'Visual Scripting' started by unflyestt, Nov 3, 2022.

  1. unflyestt

    unflyestt

    Joined:
    Oct 25, 2022
    Posts:
    1
    I was wondering what this would look like in visual scripting

    Code (CSharp):
    1. transform.rotation = Quaternion.RotateTowards(transform.rotation, toRotation, rotationSpeed * Time.deltaTime);
    How can the FromRotation be the same as the output on the node?
     
  2. jeromeatunity

    jeromeatunity

    Joined:
    Jul 1, 2018
    Posts:
    63
    This graph should work. The RotateTowards node outputs the updated Quaternion to apply to the target's rotation.