pandemonium_engine/modules/steering_ai/behaviors/gsai_cohesion.h

28 lines
520 B
C++
Raw Normal View History

#ifndef GSAI_COHESION_H
#define GSAI_COHESION_H
2023-01-14 02:31:42 +01:00
#include "core/object/reference.h"
#include "../gsai_group_behavior.h"
class GSAITargetAcceleration;
class GSAISteeringAgent;
class GSAICohesion : public GSAIGroupBehavior {
GDCLASS(GSAICohesion, GSAIGroupBehavior);
public:
2023-01-14 02:31:42 +01:00
void _calculate_steering(Ref<GSAITargetAcceleration> acceleration);
bool _report_neighbor(Ref<GSAISteeringAgent> neighbor);
GSAICohesion();
~GSAICohesion();
protected:
static void _bind_methods();
2023-01-14 02:31:42 +01:00
Vector3 _center_of_mass;
};
#endif