mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-30 07:37:16 +01:00
22 lines
451 B
C++
22 lines
451 B
C++
|
|
#include "gsai_evade.h"
|
|
|
|
// Calculates acceleration to take an agent away from where a target agent is;
|
|
// moving.;
|
|
// @category - Individual behaviors;
|
|
|
|
float GSAIEvade::_get_modified_acceleration() {
|
|
return -agent.linear_acceleration_max;
|
|
}
|
|
}
|
|
|
|
GSAIEvade::GSAIEvade() {
|
|
}
|
|
|
|
GSAIEvade::~GSAIEvade() {
|
|
}
|
|
|
|
static void GSAIEvade::_bind_methods() {
|
|
ClassDB::bind_method(D_METHOD("_get_modified_acceleration"), &GSAIEvade::_get_modified_acceleration);
|
|
}
|