generated from Persson-dev/Godot-Xmake
LaserGun without collisions
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <godot_cpp/classes/animation_player.hpp>
|
||||
#include <godot_cpp/classes/camera3d.hpp>
|
||||
#include <godot_cpp/classes/character_body3d.hpp>
|
||||
#include <godot_cpp/classes/input_event_mouse_motion.hpp>
|
||||
#include <godot_cpp/classes/node3d.hpp>
|
||||
#include <godot_cpp/classes/packed_scene.hpp>
|
||||
#include <godot_cpp/classes/ray_cast3d.hpp>
|
||||
#include <godot_cpp/classes/ref.hpp>
|
||||
|
||||
namespace blitz {
|
||||
|
||||
@@ -24,6 +28,10 @@ class FirstPersonPlayer : public godot::CharacterBody3D {
|
||||
private:
|
||||
godot::Camera3D* m_Camera;
|
||||
godot::Node3D* m_Head;
|
||||
godot::AnimationPlayer* m_WeaponAnimation;
|
||||
godot::RayCast3D* m_GunBarrel;
|
||||
godot::Node* m_BulletInstance;
|
||||
godot::Ref<godot::PackedScene> m_BulletScene;
|
||||
float m_BobTime;
|
||||
float m_Speed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user