Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region Vector3 extensions
- public static Vector3 SetX(this Vector3 v3, float x) {
- return new Vector3(x, v3.y, v3.z);
- }
- public static Vector3 SetY(this Vector3 v3, float y) {
- return new Vector3(v3.x, y, v3.z);
- }
- public static Vector3 SetZ(this Vector3 v3, float z) {
- return new Vector3(v3.x, v3.y, z);
- }
- #endregion //Vector3 extensions
Advertisement
Add Comment
Please, Sign In to add comment