This is a project I'm working on, and I can't figure this out. My plan was to have the rocket hit the planet 😁 And for the thruster fire, I froze the frame before the simulation to avoid stepping, but now when I try to reapply the position, it always moves to the center. (This is a low voxel sim though, I was gonna increase it when I was done)
1. v@P of the simulated volume is not {0,0,0}, but it evolves as the volume is resizing, so overwritingv @P is not gonna apply the correct position, you may want to add the position delta instead so v@P += point(...
2. the position offset you are adding has represent the real offset, in your case it seems like you are just taking centroid, but your sim is aligned to geo on the first frame, so unless that centroid position happens to be {0,0,0} on the first frame it will misalign
so better way would be to use Transform Pieces SOP and connect your pyro cache to first input, your animated centroid to second and centroid timeshifted to first sim frame to third and it will apply transform delta between 3rd and 2nd input points
1. v@P of the simulated volume is not {0,0,0}, but it evolves as the volume is resizing, so overwritingv @P is not gonna apply the correct position, you may want to add the position delta instead so v@P += point(...
2. the position offset you are adding has represent the real offset, in your case it seems like you are just taking centroid, but your sim is aligned to geo on the first frame, so unless that centroid position happens to be {0,0,0} on the first frame it will misalign
so better way would be to use Transform Pieces SOP and connect your pyro cache to first input, your animated centroid to second and centroid timeshifted to first sim frame to third and it will apply transform delta between 3rd and 2nd input points
I already solved it with a copy to points node, but thank you!