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:
@@ -374,7 +374,9 @@ void Node2D::set_transform(const Transform2D &p_transform) {
|
||||
transform = p_transform;
|
||||
_set_xform_dirty(true);
|
||||
|
||||
RenderingServer::get_singleton()->canvas_item_set_transform(get_canvas_item(), transform);
|
||||
if (!_is_using_identity_transform()) {
|
||||
RenderingServer::get_singleton()->canvas_item_set_transform(get_canvas_item(), transform);
|
||||
}
|
||||
|
||||
_notify_transform();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user