Pixelpart 1.10.0
Godot Plugin
Loading...
Searching...
No Matches
PixelpartAttractionField.h
1#ifndef PIXELPART_ATTRACTION_FIELD_H
2#define PIXELPART_ATTRACTION_FIELD_H
3
4#include "PixelpartForceField.h"
5#include "../property/PixelpartAnimatedPropertyFloat.h"
6#include <pixelpart-runtime/effect/AttractionField.h>
7
8namespace godot {
15class PixelpartAttractionField : public PixelpartForceField {
16 GDCLASS(PixelpartAttractionField, PixelpartForceField)
17
18public:
19 PixelpartAttractionField();
20 virtual ~PixelpartAttractionField();
21
22 virtual void init(pixelpart::Node* internalNode, pixelpart::EffectEngine* effectEnginePtr) override;
23
29 Ref<PixelpartAnimatedPropertyFloat> get_falloff_power() const;
30
31protected:
32 static void _bind_methods();
33
34private:
35 pixelpart::AttractionField* attractionField = nullptr;
36};
37}
38
39#endif
Ref< PixelpartAnimatedPropertyFloat > get_falloff_power() const
How the strength of the force field decreases based on the distance to the center.
Definition PixelpartAttractionField.cpp:18