(vector1, vector2)
| 328 | |
| 329 | ''' ========== UTILITY FUNCTIONS AND CLASSES ========== ''' |
| 330 | def get_signed_angle_diff(vector1, vector2): |
| 331 | theta = math.atan2(vector1.y, vector1.x) - math.atan2(vector2.y, vector2.x) |
| 332 | theta = np.rad2deg(theta) |
| 333 | if theta > 180: |
| 334 | theta -= 360 |
| 335 | elif theta < -180: |
| 336 | theta += 360 |
| 337 | return theta |
| 338 | |
| 339 | def get_steer_angle_range(actor): |
| 340 | actor_physics_control = actor.get_physics_control() |
no outgoing calls
no test coverage detected