Pixelpart 1.8.2
Godot Plugin
Loading...
Searching...
No Matches
PixelpartForceField.h
1#ifndef PIXELPART_FORCE_FIELD_H
2#define PIXELPART_FORCE_FIELD_H
3
4#include "PixelpartNode.h"
5#include "../property/PixelpartAnimatedPropertyFloat.h"
6#include <pixelpart-runtime/effect/ForceField.h>
7
8namespace godot {
16class PixelpartForceField : public PixelpartNode {
17 GDCLASS(PixelpartForceField, PixelpartNode)
18
19public:
20 PixelpartForceField();
21 virtual ~PixelpartForceField();
22
23#ifdef DOXYGEN
28#endif
29
30 virtual void init(pixelpart::Node* internalNode, pixelpart::EffectEngine* effectEnginePtr) override;
31
37 void set_infinite(bool mode);
38
44 bool is_infinite() const;
45
53 Ref<PixelpartAnimatedPropertyFloat> get_strength() const;
54
55protected:
56 static void _bind_methods();
57
58private:
59 pixelpart::ForceField* forceField = nullptr;
60};
61}
62
63#endif
void set_infinite(bool mode)
Set whether the force field has an infinite area of effect.
Definition PixelpartForceField.cpp:19
Ref< PixelpartAnimatedPropertyFloat > get_strength() const
How strongly particles are affected by the force field.
Definition PixelpartForceField.cpp:30
bool infinite
Whether the force field has an infinite area of effect.
Definition PixelpartForceField.h:27
bool is_infinite() const
Whether the force field has an infinite area of effect.
Definition PixelpartForceField.cpp:26