break-utopia/modules/break_utopia/cop_bot.h
2026-01-21 17:06:18 +01:00

25 lines
518 B
C++

#pragma once
#include "break_utopia/macros.h"
#include "scene/3d/physics/character_body_3d.h"
#include "scene/animation/animation_player.h"
class CopBot : public CharacterBody3D {
GDCLASS(CopBot, CharacterBody3D);
static void _bind_methods();
void ready();
void process();
void physics_process();
protected:
void _notification(int what);
private:
float speed{ 3.f };
bool animating{ false };
AnimationPlayer *anim{ nullptr };
public:
GET_SET_FNS(float, speed);
GET_SET_FNS(AnimationPlayer *, anim);
};