#ifndef GSAIKINEMATICBODY3DAGENT_H #define GSAIKINEMATICBODY3DAGENT_H class GSAIKinematicBody3DAgent : public GSAISpecializedAgent { GDCLASS(GSAIKinematicBody3DAgent, GSAISpecializedAgent); public: KinematicBody get_*body(); void set_*body(const KinematicBody &val); int get_movement_type() const; void set_movement_type(const int val); Vector3 get__last_position(); void set__last_position(const Vector3 &val); Ref get__body_ref(); void set__body_ref(const Ref &val); enum MovementType { SLIDE, COLLIDE, POSITION }; void _body_ready(); void _apply_steering(const GSAITargetAcceleration &acceleration, const float delta); void _apply_sliding_steering(const Vector3 &accel, const float delta); void _apply_collide_steering(const Vector3 &accel, const float delta); void _apply_position_steering(const Vector3 &accel, const float delta); void _apply_orientation_steering(const float angular_acceleration, const float delta); void _set_body(const KinematicBody &value); void _on_SceneTree_physics_frame(); GSAIKinematicBody3DAgent(); ~GSAIKinematicBody3DAgent(); protected: static void _bind_methods(); // A specialized steering agent that updates itself every frame so the user does // not have to using a KinematicBody // @category - Specialized agents // SLIDE uses `move_and_slide` // COLLIDE uses `move_and_collide` // POSITION changes the global_position directly }; // The KinematicBody to keep track of // setget _set_body KinematicBody *body; // The type of movement the body executes int movement_type = 0; Vector3 _last_position = ; Ref _body_ref; // Moves the agent's `body` by target `acceleration`. // @tags - virtual }; #endif