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:
parent
a7146ef807
commit
56fc0fd175
12 changed files with 157 additions and 34 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue