sturdyspoon / unity-movement-ai

A Unity library for common movement AI
MIT License
1.95k stars 280 forks source link

the CollisionAvoidSensor get wrong position with the ScreenBoundary #13

Open kwanggaeto opened 4 years ago

kwanggaeto commented 4 years ago

the CollisionAvoidSensor get wrong position when a Unit reach a boundary and reposition the opposite side.

you should fix the "KeepInBound" method which is in the ScreenBoundary script. set the new position to the Rigidbody instead of the Transform.