xiaonanln / goworld

Scalable Distributed Game Server Engine with Hot Swapping in Golang
Apache License 2.0
2.53k stars 450 forks source link

Fixed a bug with arithmetic symbols in Vector3.go #114

Closed p3ddd closed 1 year ago

p3ddd commented 1 year ago

The multiplication sign in the Normalize() function is written as a plus sign.

Now it is (p.X*p.X + p.Y + p.Y + p.Z*p.Z) and it should be (p.X*p.X + p.Y*p.Y + p.Z*p.Z) .