1
This commit is contained in:
1 parent
1798ac3fc5
commit
5e51ba02e0
5 files changed
+744
-25
No files matched your search
+1
-4
@@ -45,10 +45,7 @@ public class Agent : MonoBehaviour
|
||||
velocity.Normalize();
|
||||
velocity = velocity * maxSpeed;
|
||||
}
|
||||
if (steering.angular == 0.0f)
|
||||
{
|
||||
rotation = 0.0f;
|
||||
}
|
||||
|
||||
if (steering.linear.sqrMagnitude == 0.0f)
|
||||
{
|
||||
velocity = Vector3.zero;
|
||||
|
||||
Reference in new issue
Block a user