Unity - how to use Vector2.Reflect()

前端 未结 2 870
野性不改
野性不改 2021-01-18 18:27

I have looked everywhere including the Unity documentation but cannot seem to find any good examples of how to use Unity\'s Vector2.Reflect() function. I am trying to use th

2条回答
  •  情深已故
    2021-01-18 19:09

    Vector2 Reflect(Vector2 inDirection, Vector2 inNormal):

    inDirection: black arrow

    inNormal: red arrow

    return output: green arrow

提交回复
热议问题