2023-01-13 22:04:30 +01:00
|
|
|
#ifndef GSAI_TARGET_ACCELERATION_H
|
|
|
|
#define GSAI_TARGET_ACCELERATION_H
|
|
|
|
|
|
|
|
#include "core/int_types.h"
|
|
|
|
#include "core/math/vector3.h"
|
|
|
|
#include "core/object/reference.h"
|
|
|
|
|
2023-01-13 21:13:57 +01:00
|
|
|
class GSAITargetAcceleration : public Reference {
|
2023-01-13 21:35:07 +01:00
|
|
|
GDCLASS(GSAITargetAcceleration, Reference);
|
|
|
|
|
|
|
|
public:
|
|
|
|
Vector3 get_linear();
|
|
|
|
void set_linear(const Vector3 &val);
|
|
|
|
|
|
|
|
float get_angular() const;
|
|
|
|
void set_angular(const float val);
|
|
|
|
|
|
|
|
void set_zero();
|
2023-01-13 23:01:38 +01:00
|
|
|
void add_scaled_accel(const Ref<GSAITargetAcceleration> &accel, const float scalar);
|
2023-01-14 14:31:39 +01:00
|
|
|
|
2023-01-13 21:35:07 +01:00
|
|
|
float get_magnitude_squared();
|
|
|
|
float get_magnitude();
|
|
|
|
|
|
|
|
GSAITargetAcceleration();
|
|
|
|
~GSAITargetAcceleration();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
2023-01-13 23:01:38 +01:00
|
|
|
Vector3 linear;
|
|
|
|
float angular;
|
2023-01-13 21:13:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|