generated from Persson-dev/Godot-Xmake
Squashed commit of the following:
commit 4fd60e7874
Author: Morph01 <145839520+Morph01@users.noreply.github.com>
Date: Fri Aug 16 14:19:29 2024 +0200
bug animation ???
This commit is contained in:
33
src/Zombie.h
Normal file
33
src/Zombie.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include <godot_cpp/classes/character_body3d.hpp>
|
||||
#include <godot_cpp/classes/navigation_agent3d.hpp>
|
||||
#include <godot_cpp/variant/node_path.hpp>
|
||||
#include "FirstPersonPlayer.h"
|
||||
|
||||
|
||||
namespace blitz {
|
||||
class Zombie : public godot::CharacterBody3D {
|
||||
GDCLASS(Zombie, godot::CharacterBody3D)
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
Zombie();
|
||||
~Zombie();
|
||||
|
||||
void _ready();
|
||||
void _process(float delta);
|
||||
|
||||
private:
|
||||
godot::NavigationAgent3D* m_NavigationAgent;
|
||||
FirstPersonPlayer* m_Player;
|
||||
godot::NodePath m_PlayerPath;
|
||||
godot::Vector3 m_Velocity;
|
||||
|
||||
void set_m_PlayerPath(const godot::NodePath& path);
|
||||
|
||||
godot::NodePath get_m_PlayerPath() const;
|
||||
};
|
||||
|
||||
} // namespace blitz
|
||||
Reference in New Issue
Block a user