mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-23 09:28:07 +01:00
22 lines
736 B
C++
22 lines
736 B
C++
|
|
#include "gsai_utils.h"
|
|
|
|
GSAIUtils *GSAIUtils::_singleton = NULL;
|
|
|
|
GSAIUtils::GSAIUtils() {
|
|
_singleton = this;
|
|
}
|
|
|
|
GSAIUtils::~GSAIUtils() {
|
|
_singleton = NULL;
|
|
}
|
|
|
|
void GSAIUtils::_bind_methods() {
|
|
ClassDB::bind_method(D_METHOD("clampedv3", "vector", "limit"), &GSAIUtils::bclampedv3);
|
|
ClassDB::bind_method(D_METHOD("vector3_to_angle", "vector"), &GSAIUtils::bvector3_to_angle);
|
|
ClassDB::bind_method(D_METHOD("vector2_to_angle", "vector"), &GSAIUtils::bvector2_to_angle);
|
|
ClassDB::bind_method(D_METHOD("angle_to_vector2", "angle"), &GSAIUtils::bangle_to_vector2);
|
|
ClassDB::bind_method(D_METHOD("to_vector2", "vector"), &GSAIUtils::bto_vector2);
|
|
ClassDB::bind_method(D_METHOD("to_vector3", "vector"), &GSAIUtils::bto_vector3);
|
|
}
|