1#ifndef PIXELPART_FORCE_FIELD_H
2#define PIXELPART_FORCE_FIELD_H
4#include "PixelpartNode.h"
5#include "../property/PixelpartAnimatedPropertyFloat.h"
6#include <pixelpart-runtime/effect/ForceField.h>
16class PixelpartForceField :
public PixelpartNode {
17 GDCLASS(PixelpartForceField, PixelpartNode)
20 PixelpartForceField();
21 virtual ~PixelpartForceField();
30 virtual void init(pixelpart::Node* internalNode, pixelpart::EffectEngine* effectEnginePtr)
override;
53 Ref<PixelpartAnimatedPropertyFloat>
get_strength()
const;
56 static void _bind_methods();
59 pixelpart::ForceField* forceField =
nullptr;
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