2023-01-13 22:04:30 +01:00
|
|
|
#ifndef GSAI_FACE_H
|
|
|
|
#define GSAI_FACE_H
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-14 02:31:42 +01:00
|
|
|
#include "core/object/reference.h"
|
|
|
|
|
|
|
|
#include "gsai_match_orientation.h"
|
|
|
|
|
|
|
|
class GSAITargetAcceleration;
|
|
|
|
|
2023-01-13 21:13:57 +01:00
|
|
|
class GSAIFace : public GSAIMatchOrientation {
|
2023-01-13 21:35:07 +01:00
|
|
|
GDCLASS(GSAIFace, GSAIMatchOrientation);
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-13 21:35:07 +01:00
|
|
|
public:
|
2023-01-14 02:31:42 +01:00
|
|
|
void face(const Ref<GSAITargetAcceleration> &acceleration, const Vector3 &target_position);
|
2023-01-14 02:47:55 +01:00
|
|
|
virtual void _face(Ref<GSAITargetAcceleration> acceleration, Vector3 target_position);
|
2023-01-14 02:31:42 +01:00
|
|
|
|
|
|
|
void _calculate_steering(Ref<GSAITargetAcceleration> acceleration);
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-13 21:35:07 +01:00
|
|
|
GSAIFace();
|
|
|
|
~GSAIFace();
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-13 21:35:07 +01:00
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
2023-01-13 21:13:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|