Skip to content

Commit

Permalink
made all vectors unit vectors in Direction, for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunbaratu committed Jun 27, 2014
1 parent 8c8e84b commit 44db83e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Suffixed/Direction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public Vector3d Vector
get { return vector; }
set
{
vector = value;
vector = value.normalized;
rotation = Quaternion.LookRotation(value);
euler = rotation.eulerAngles;
}
Expand Down

0 comments on commit 44db83e

Please sign in to comment.