generated from Persson-dev/Godot-Xmake
Bullets Colliding and Disappearing
This commit is contained in:
10
src/Bullet.h
10
src/Bullet.h
@@ -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
|
||||
Reference in New Issue
Block a user