#ifndef GSAI_FACE_H #define GSAI_FACE_H #include "core/object/reference.h" #include "gsai_match_orientation.h" class GSAITargetAcceleration; class GSAIFace : public GSAIMatchOrientation { GDCLASS(GSAIFace, GSAIMatchOrientation); public: void face(const Ref &acceleration, const Vector3 &target_position); void _face(Ref acceleration, Vector3 target_position); void _calculate_steering(Ref acceleration); GSAIFace(); ~GSAIFace(); protected: static void _bind_methods(); // Calculates angular acceleration to rotate a target to face its target's // position. The behavior attemps to arrive with zero remaining angular velocity. // @category - Individual behaviors }; #endif