Pixelpart 1.10.0
Godot Plugin
Loading...
Searching...
No Matches
PixelpartVortexField.h
1#ifndef PIXELPART_VORTEX_FIELD_H
2#define PIXELPART_VORTEX_FIELD_H
3
4#include "PixelpartForceField.h"
5#include "../property/PixelpartAnimatedPropertyFloat.h"
6#include <pixelpart-runtime/effect/VortexField.h>
7
8namespace godot {
12class PixelpartVortexField : public PixelpartForceField {
13 GDCLASS(PixelpartVortexField, PixelpartForceField)
14
15public:
16 PixelpartVortexField();
17 virtual ~PixelpartVortexField();
18
19 virtual void init(pixelpart::Node* internalNode, pixelpart::EffectEngine* effectEnginePtr) override;
20
26 Ref<PixelpartAnimatedPropertyFloat> get_tangential_strength() const;
27
33 Ref<PixelpartAnimatedPropertyFloat> get_radial_strength() const;
34
35protected:
36 static void _bind_methods();
37
38private:
39 pixelpart::VortexField* vortexField = nullptr;
40};
41}
42
43#endif
Ref< PixelpartAnimatedPropertyFloat > get_radial_strength() const
How strongly the vortex field attracts particles.
Definition PixelpartVortexField.cpp:30
Ref< PixelpartAnimatedPropertyFloat > get_tangential_strength() const
How strongly particles are accelerated outwards.
Definition PixelpartVortexField.cpp:18