Open kwanggaeto opened 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.
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.