1#ifndef PIXELPART_COLLIDER_H
2#define PIXELPART_COLLIDER_H
4#include "PixelpartNode.h"
5#include "../property/PixelpartStaticPropertyBool.h"
6#include "../property/PixelpartAnimatedPropertyFloat.h"
7#include <pixelpart-runtime/effect/Collider.h>
15class PixelpartCollider :
public PixelpartNode {
16 GDCLASS(PixelpartCollider, PixelpartNode)
20 virtual ~PixelpartCollider();
22 virtual void init(pixelpart::Node* internalNode, pixelpart::EffectEngine* effectEnginePtr)
override;
36 Ref<PixelpartAnimatedPropertyFloat>
get_bounce()
const;
43 Ref<PixelpartAnimatedPropertyFloat>
get_friction()
const;
46 static void _bind_methods();
49 pixelpart::Collider* collider =
nullptr;
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