NodeCanvas Forums › Support › [BUG] Wander.cs › Reply To: [BUG] Wander.cs
I made no changes – I posted exactly your code. But I think it must read min * min.
min * min
Like this:
var sqrMin = min * min; while ( ( wanderPos – agent.transform.position ).sqrMagnitude < sqrMin ) { wanderPos = ( Random.insideUnitSphere * max ) + agent.transform.position; }
Username
Password
Remember Me
By registering on this website you agree to our Privacy Policy.
Email
Confirm Password
Username or Email