![]() |
Pixelpart 1.8.4
Godot Plugin
|
Collider consisting of several connected line segments (2D only). More...
Public Member Functions | |
| void | add_point (Vector3 point) |
| Add a vertex to the end of the line collider. | |
| void | set_point (int index, Vector3 point) |
| Change the location of a vertex in the line collider. | |
| void | remove_point (int index) |
| Remove a vertex from the line collider. | |
| Vector3 | get_point (int index) const |
| Location of a vertex in the line collider. | |
| int | get_point_count () const |
| Number of vertices in the line collider. | |
Public Member Functions inherited from godot::PixelpartCollider | |
| Ref< PixelpartStaticPropertyBool > | get_kill_on_contact () const |
| Whether to kill particles on contact with the collider. | |
| Ref< PixelpartAnimatedPropertyFloat > | get_bounce () const |
| How strongly particles bounce back from the collider. | |
| Ref< PixelpartAnimatedPropertyFloat > | get_friction () const |
| How much particles are slowed down when sliding down the collider. | |
Public Member Functions inherited from godot::PixelpartNode | |
| int | get_id () const |
| ID of the node. | |
| int | get_parent_id () const |
| ID of the node's parent. | |
| String | get_name () const |
| Name of the node. | |
| void | set_lifetime_start (float time) |
| Set time until the node becomes active. | |
| void | set_lifetime_duration (float time) |
| Set how long the node stays active in seconds. | |
| void | set_repeat (bool value) |
| Set whether the node repeats its behavior after its lifetime is over. | |
| float | get_lifetime_start () const |
| Time in seconds until the node becomes active. | |
| float | get_lifetime_duration () const |
| How long the node is active in seconds. | |
| bool | get_repeat () const |
| Wether the node repeats its behavior after its lifetime is over. | |
| bool | is_active () const |
| Return whether the node is active at the current point in time. | |
| float | get_local_time () const |
| Return the time fraction the emitter has been active for, in range 0.0 (0%) to 1.0 (100%). | |
| Ref< PixelpartAnimatedPropertyFloat3 > | get_position () const |
| Position of the node. | |
| Ref< PixelpartAnimatedPropertyFloat3 > | get_rotation () const |
| Rotation of the node in degrees. | |
| Ref< PixelpartAnimatedPropertyFloat3 > | get_scale () const |
| Size of the node. | |
Additional Inherited Members | |
Public Attributes inherited from godot::PixelpartNode | |
| float | lifetime_start |
| Time in seconds until the node becomes active. | |
| float | lifetime_duration |
| How long the node stays active in seconds. | |
| bool | repeat |
| Wether the node repeats its behavior after its lifetime is over. | |
Collider consisting of several connected line segments (2D only).
Line colliders combine several collision segments together and are defined by a set of points at the vertices of the line segments.
| void godot::PixelpartLineCollider::add_point | ( | Vector3 | point | ) |
Add a vertex to the end of the line collider.
| point | Point to add |
| Vector3 godot::PixelpartLineCollider::get_point | ( | int | index | ) | const |
Location of a vertex in the line collider.
| index | Index Index of the vertex |
| int godot::PixelpartLineCollider::get_point_count | ( | ) | const |
Number of vertices in the line collider.
| void godot::PixelpartLineCollider::remove_point | ( | int | index | ) |
Remove a vertex from the line collider.
| index | Index of vertex to remove |
| void godot::PixelpartLineCollider::set_point | ( | int | index, |
| Vector3 | point ) |
Change the location of a vertex in the line collider.
| index | Index of the vertex |
| point | New location |