Bullets Colliding and Disappearing

This commit is contained in:
Morph01
2024-08-15 13:28:16 +02:00
parent b92c5169c4
commit 91d492c2d8
3 changed files with 69 additions and 3 deletions

View File

@@ -1,6 +1,9 @@
#pragma once
#include <godot_cpp/classes/gpu_particles3d.hpp>
#include <godot_cpp/classes/mesh_instance3d.hpp>
#include <godot_cpp/classes/node3d.hpp>
#include <godot_cpp/classes/ray_cast3d.hpp>
namespace blitz {
class Bullet : public godot::Node3D {
@@ -14,6 +17,13 @@ class Bullet : public godot::Node3D {
void _ready();
void _physics_process(float delta);
private:
godot::GPUParticles3D* m_Particles;
godot::RayCast3D* m_Ray;
godot::MeshInstance3D* m_Mesh;
void _on_timer_timeout();
};
} // namespace blitz