Pixelpart 1.8.2
Godot Plugin
Loading...
Searching...
No Matches
PixelpartCollider.h
1#ifndef PIXELPART_COLLIDER_H
2#define PIXELPART_COLLIDER_H
3
4#include "PixelpartNode.h"
5#include "../property/PixelpartStaticPropertyBool.h"
6#include "../property/PixelpartAnimatedPropertyFloat.h"
7#include <pixelpart-runtime/effect/Collider.h>
8
9namespace godot {
15class PixelpartCollider : public PixelpartNode {
16 GDCLASS(PixelpartCollider, PixelpartNode)
17
18public:
19 PixelpartCollider();
20 virtual ~PixelpartCollider();
21
22 virtual void init(pixelpart::Node* internalNode, pixelpart::EffectEngine* effectEnginePtr) override;
23
29 Ref<PixelpartStaticPropertyBool> get_kill_on_contact() const;
30
36 Ref<PixelpartAnimatedPropertyFloat> get_bounce() const;
37
43 Ref<PixelpartAnimatedPropertyFloat> get_friction() const;
44
45protected:
46 static void _bind_methods();
47
48private:
49 pixelpart::Collider* collider = nullptr;
50};
51}
52
53#endif
Ref< PixelpartStaticPropertyBool > get_kill_on_contact() const
Whether to kill particles on contact with the collider.
Definition PixelpartCollider.cpp:18
Ref< PixelpartAnimatedPropertyFloat > get_bounce() const
How strongly particles bounce back from the collider.
Definition PixelpartCollider.cpp:30
Ref< PixelpartAnimatedPropertyFloat > get_friction() const
How much particles are slowed down when sliding down the collider.
Definition PixelpartCollider.cpp:41