Reply To: Beginner question about rotation a Rigidbody2D to face the direction of movement

Forums 💬 FlowCanvas ⚙️ Support Beginner question about rotation a Rigidbody2D to face the direction of movement Reply To: Beginner question about rotation a Rigidbody2D to face the direction of movement

#22745
Gavalakis
Keymaster

    Hello,

    Thanks a lot, I am glad you like FlowCanvas!
    The Rad2Deg is a field and right now fields can not be used with FlowCanvas for performance reason, but I will make it possible in the next version.
    To work around this for now, the easiest way would be to create a float variable in your flowscript named “Rad2Deg” and give it a value of “57.29578” which is exactly what Mathf.Rad2Deg return (it’s a constant value).

    Let me know if that works for you and thanks again.