1#ifndef PIXELPART_DRAG_FIELD_H
2#define PIXELPART_DRAG_FIELD_H
4#include "PixelpartForceField.h"
5#include "../property/PixelpartStaticPropertyFloat.h"
6#include <pixelpart-runtime/effect/DragField.h>
14class PixelpartDragField :
public PixelpartForceField {
15 GDCLASS(PixelpartDragField, PixelpartForceField)
19 virtual ~PixelpartDragField();
21 virtual void init(pixelpart::Node* internalNode, pixelpart::EffectEngine* effectEnginePtr)
override;
38 static void _bind_methods();
41 pixelpart::DragField* dragField =
nullptr;
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