1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

CPUParticles2D - Add ability to follow physics interpolated target

Allows a non-interpolated particle system to closely follow an interpolated target without tracking ahead of the target, by performing fixed timestep interpolation on the particle system global transform, and using this for emission.

Co-authored-by: lawnjelly <lawnjelly@gmail.com>
This commit is contained in:
Ricardo Buring
2025-01-22 13:24:55 +01:00
parent a7146ef807
commit 56fc0fd175
12 changed files with 157 additions and 34 deletions

View File

@@ -321,6 +321,7 @@ public:
bool update_when_visible : 1;
bool on_interpolate_transform_list : 1;
bool interpolated : 1;
bool use_identity_transform : 1;
struct CanvasGroup {
RS::CanvasGroupMode mode;
@@ -486,6 +487,7 @@ public:
repeat_source = false;
on_interpolate_transform_list = false;
interpolated = true;
use_identity_transform = false;
}
virtual ~Item() {
clear();