2023-01-13 22:04:30 +01:00
|
|
|
#ifndef GSAI_AGENT_LOCATION_H
|
|
|
|
#define GSAI_AGENT_LOCATION_H
|
2023-01-13 21:13:57 +01:00
|
|
|
|
|
|
|
class GSAIAgentLocation : public Reference {
|
2023-01-13 21:35:07 +01:00
|
|
|
GDCLASS(GSAIAgentLocation, Reference);
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-13 21:35:07 +01:00
|
|
|
public:
|
|
|
|
Vector3 get_position();
|
|
|
|
void set_position(const Vector3 &val);
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-13 21:35:07 +01:00
|
|
|
float get_orientation() const;
|
|
|
|
void set_orientation(const float val);
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-13 21:35:07 +01:00
|
|
|
GSAIAgentLocation();
|
|
|
|
~GSAIAgentLocation();
|
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
|
|
|
|
2023-01-13 21:35:07 +01:00
|
|
|
// Represents an agent with only a location and an orientation.
|
|
|
|
// @category - Base types
|
|
|
|
// The agent's position in space.
|
|
|
|
Vector3 position = Vector3.ZERO;
|
|
|
|
// The agent's orientation on its Y axis rotation.
|
|
|
|
float orientation = 0.0;
|
2023-01-13 21:13:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|