summaryrefslogtreecommitdiff
path: root/scene/3d/gpu_particles_collision_3d.h
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-08-12 09:07:47 -0500
committerAaron Franke <arnfranke@yahoo.com>2021-08-12 11:35:31 -0500
commit03e2544d50b73a56907694fc45cb82ad11c74a95 (patch)
treef7a516477af7169d5ecb4745d29b57c757a5584e /scene/3d/gpu_particles_collision_3d.h
parentc89ad92c96a9b99d8550acda47e71948dffec1cd (diff)
Use real_t and double where appropriate in Particles
Diffstat (limited to 'scene/3d/gpu_particles_collision_3d.h')
-rw-r--r--scene/3d/gpu_particles_collision_3d.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/scene/3d/gpu_particles_collision_3d.h b/scene/3d/gpu_particles_collision_3d.h
index c55463378d..f96edd4bfc 100644
--- a/scene/3d/gpu_particles_collision_3d.h
+++ b/scene/3d/gpu_particles_collision_3d.h
@@ -60,14 +60,14 @@ public:
class GPUParticlesCollisionSphere : public GPUParticlesCollision3D {
GDCLASS(GPUParticlesCollisionSphere, GPUParticlesCollision3D);
- float radius = 1.0;
+ real_t radius = 1.0;
protected:
static void _bind_methods();
public:
- void set_radius(float p_radius);
- float get_radius() const;
+ void set_radius(real_t p_radius);
+ real_t get_radius() const;
virtual AABB get_aabb() const override;
@@ -253,9 +253,9 @@ class GPUParticlesAttractor3D : public VisualInstance3D {
uint32_t cull_mask = 0xFFFFFFFF;
RID collision;
- float strength = 1.0;
- float attenuation = 1.0;
- float directionality = 0.0;
+ real_t strength = 1.0;
+ real_t attenuation = 1.0;
+ real_t directionality = 0.0;
protected:
_FORCE_INLINE_ RID _get_collision() { return collision; }
@@ -267,14 +267,14 @@ public:
void set_cull_mask(uint32_t p_cull_mask);
uint32_t get_cull_mask() const;
- void set_strength(float p_strength);
- float get_strength() const;
+ void set_strength(real_t p_strength);
+ real_t get_strength() const;
- void set_attenuation(float p_attenuation);
- float get_attenuation() const;
+ void set_attenuation(real_t p_attenuation);
+ real_t get_attenuation() const;
- void set_directionality(float p_directionality);
- float get_directionality() const;
+ void set_directionality(real_t p_directionality);
+ real_t get_directionality() const;
virtual Vector<Face3> get_faces(uint32_t p_usage_flags) const override { return Vector<Face3>(); }
@@ -284,14 +284,14 @@ public:
class GPUParticlesAttractorSphere : public GPUParticlesAttractor3D {
GDCLASS(GPUParticlesAttractorSphere, GPUParticlesAttractor3D);
- float radius = 1.0;
+ real_t radius = 1.0;
protected:
static void _bind_methods();
public:
- void set_radius(float p_radius);
- float get_radius() const;
+ void set_radius(real_t p_radius);
+ real_t get_radius() const;
virtual AABB get_aabb() const override;