pandemonium_engine/modules/steering_ai/behaviors/gsai_follow_path.h

41 lines
784 B
C++
Raw Normal View History

#ifndef GSAI_FOLLOW_PATH_H
#define GSAI_FOLLOW_PATH_H
2023-01-14 02:47:55 +01:00
#include "core/object/reference.h"
#include "gsai_arrive.h"
class GSAIPath;
class GSAIFollowPath : public GSAIArrive {
GDCLASS(GSAIFollowPath, GSAIArrive);
public:
2023-01-14 02:47:55 +01:00
Ref<GSAIPath> get_path();
void set_path(const Ref<GSAIPath> &val);
float get_path_offset() const;
void set_path_offset(const float val);
bool get_is_arrive_enabled() const;
void set_is_arrive_enabled(const bool val);
float get_prediction_time() const;
void set_prediction_time(const float val);
2023-01-14 02:47:55 +01:00
void _calculate_steering(Ref<GSAITargetAcceleration> acceleration);
GSAIFollowPath();
~GSAIFollowPath();
protected:
static void _bind_methods();
2023-01-14 02:47:55 +01:00
Ref<GSAIPath> path;
float path_offset;
bool is_arrive_enabled;
float prediction_time;
};
#endif