Skip to content

Instantly share code, notes, and snippets.

@nopitech
Last active July 9, 2018 13:22
Show Gist options
  • Save nopitech/476e3ae45fed05045082dc3a868a7f29 to your computer and use it in GitHub Desktop.
Save nopitech/476e3ae45fed05045082dc3a868a7f29 to your computer and use it in GitHub Desktop.
using UnityEngine;
public class VectorScript : MonoBehaviour
{
void Start()
{
Vector3 vec = new Vector3(1, -5, 0);
//(1, 5, 0)になる
Vector3 res = Vector3.Reflect(vec, Vector3.up);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment