Pixelpart 1.8.2
Godot Plugin
Loading...
Searching...
No Matches
PixelpartDragField.h
1#ifndef PIXELPART_DRAG_FIELD_H
2#define PIXELPART_DRAG_FIELD_H
3
4#include "PixelpartForceField.h"
5#include "../property/PixelpartStaticPropertyFloat.h"
6#include <pixelpart-runtime/effect/DragField.h>
7
8namespace godot {
14class PixelpartDragField : public PixelpartForceField {
15 GDCLASS(PixelpartDragField, PixelpartForceField)
16
17public:
18 PixelpartDragField();
19 virtual ~PixelpartDragField();
20
21 virtual void init(pixelpart::Node* internalNode, pixelpart::EffectEngine* effectEnginePtr) override;
22
28 Ref<PixelpartStaticPropertyFloat> get_velocity_influence() const;
29
35 Ref<PixelpartStaticPropertyFloat> get_size_influence() const;
36
37protected:
38 static void _bind_methods();
39
40private:
41 pixelpart::DragField* dragField = nullptr;
42};
43}
44
45#endif
Ref< PixelpartStaticPropertyFloat > get_size_influence() const
How strongly the drag force is influenced by the particle size.
Definition PixelpartDragField.cpp:29
Ref< PixelpartStaticPropertyFloat > get_velocity_influence() const
How strongly the drag force is influenced by the particle velocity.
Definition PixelpartDragField.cpp:18