![]() |
Pixelpart 1.9.0
Godot Plugin
|
Vector3 property animated with keyframes and affected by effect inputs.
More...
Public Member Functions | |
| Vector3 | at (float position) const |
Return the (interpolated) value of the animation property at time position. | |
| void | add_keyframe (float position, Vector3 value) |
Add a keyframe at time position with value value. | |
| void | remove_keyframe (int index) |
| Remove the keyframe with the given index from the animation. | |
| void | set_keyframe_value (int index, Vector3 value) |
| Change the value of the keyframe with the given index. | |
| void | set_keyframe_position (int index, float position) |
Move the time of the keyframe with the given index to position. | |
| void | clear_keyframes () |
| Remove all keyframes from the animation. | |
| bool | contains_keyframes () const |
| Return whether the animation property contains any keyframes. | |
| int | get_keyframe_count () const |
| Return the number of keyframes. | |
| Vector3 | get_keyframe_value (int index) const |
| Return the value of the keyframe with the given index. | |
| int | get_keyframe_index (float position, float epsilon) |
Return the index of the keyframe closest to time position. | |
| void | set_keyframe_interpolation (InterpolationType method) |
| Set interpolation applied to the animation curve. | |
| InterpolationType | get_keyframe_interpolation () const |
| Return interpolation applied to the animation curve. | |
Public Attributes | |
| InterpolationType | keyframe_interpolation |
| Interpolation applied to the animation curve. | |
Additional Inherited Members | |
Public Types inherited from godot::PixelpartAnimatedProperty | |
| enum | InterpolationType { INTERPOLATION_STEP = 0 , INTERPOLATION_LINEAR = 1 , INTERPOLATION_SPLINE = 2 , INTERPOLATION_BEZIER = 3 } |
| Keyframe interpolation types. More... | |
Vector3 property animated with keyframes and affected by effect inputs.
Scene objects of an effect like particle emitters and force fields have properties that change over time and are affected by effect inputs. Such properties are represented by one of the PixelpartAnimatedProperty classes, depending on the type of the property.
| void godot::PixelpartAnimatedPropertyFloat3::add_keyframe | ( | float | position, |
| Vector3 | value ) |
Add a keyframe at time position with value value.
| position | Time between 0 and 1 |
| value | Value of the property at the given time |
| Vector3 godot::PixelpartAnimatedPropertyFloat3::at | ( | float | position | ) | const |
Return the (interpolated) value of the animation property at time position.
| position | Time between 0 and 1 |
| bool godot::PixelpartAnimatedPropertyFloat3::contains_keyframes | ( | ) | const |
Return whether the animation property contains any keyframes.
| int godot::PixelpartAnimatedPropertyFloat3::get_keyframe_count | ( | ) | const |
Return the number of keyframes.
| int godot::PixelpartAnimatedPropertyFloat3::get_keyframe_index | ( | float | position, |
| float | epsilon ) |
Return the index of the keyframe closest to time position.
| position | Time between 0 and 1 |
| epsilon | Maximum differerence in time to consider to keyframes at the same time |
| PixelpartAnimatedPropertyFloat3::InterpolationType godot::PixelpartAnimatedPropertyFloat3::get_keyframe_interpolation | ( | ) | const |
Return interpolation applied to the animation curve.
| Vector3 godot::PixelpartAnimatedPropertyFloat3::get_keyframe_value | ( | int | index | ) | const |
Return the value of the keyframe with the given index.
| index | Keyframe index |
| void godot::PixelpartAnimatedPropertyFloat3::remove_keyframe | ( | int | index | ) |
Remove the keyframe with the given index from the animation.
| index | Index to remove |
| void godot::PixelpartAnimatedPropertyFloat3::set_keyframe_interpolation | ( | InterpolationType | method | ) |
Set interpolation applied to the animation curve.
| method | Interpolation method |
| void godot::PixelpartAnimatedPropertyFloat3::set_keyframe_position | ( | int | index, |
| float | position ) |
Move the time of the keyframe with the given index to position.
| index | Keyframe index |
| position | New time between 0 and 1 |
| void godot::PixelpartAnimatedPropertyFloat3::set_keyframe_value | ( | int | index, |
| Vector3 | value ) |
Change the value of the keyframe with the given index.
| index | Keyframe index |
| value | New value |