1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-02 16:48:55 +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.
This commit is contained in:
lawnjelly
2023-08-23 14:36:50 +01:00
parent bc1426dd70
commit 3e19cf834a
7 changed files with 88 additions and 10 deletions

View File

@@ -882,9 +882,7 @@ void Node::set_physics_interpolation_mode(PhysicsInterpolationMode p_mode) {
}
void Node::reset_physics_interpolation() {
if (is_physics_interpolated_and_enabled()) {
propagate_notification(NOTIFICATION_RESET_PHYSICS_INTERPOLATION);
}
propagate_notification(NOTIFICATION_RESET_PHYSICS_INTERPOLATION);
}
float Node::get_physics_process_delta_time() const {