2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-13 21:29:17 +01:00
|
|
|
#include "gsai_evade.h"
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-14 02:31:42 +01:00
|
|
|
#include "../gsai_steering_agent.h"
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-13 21:35:07 +01:00
|
|
|
float GSAIEvade::_get_modified_acceleration() {
|
2023-01-14 02:31:42 +01:00
|
|
|
ERR_FAIL_COND_V(!agent.is_valid(), 0);
|
|
|
|
|
|
|
|
return -(agent->get_linear_acceleration_max());
|
2023-01-13 21:13:57 +01:00
|
|
|
}
|
|
|
|
|
2023-01-13 21:35:07 +01:00
|
|
|
GSAIEvade::GSAIEvade() {
|
|
|
|
}
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-13 21:35:07 +01:00
|
|
|
GSAIEvade::~GSAIEvade() {
|
|
|
|
}
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-14 02:31:42 +01:00
|
|
|
void GSAIEvade::_bind_methods() {
|
2023-01-13 21:35:07 +01:00
|
|
|
}
|