How to prevent pyro sim from moving

   447   2   0
User Avatar
Member
2 posts
Joined: 12月 2023
Offline
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)
Image Not Found

Attachments:
2025-02-08 10-26-34.mp4 (5.7 MB)

User Avatar
Member
9121 posts
Joined: 7月 2007
Offline
there are 2 factors you need to consider

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
Edited by tamte - 2025年2月10日 15:18:09
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
2 posts
Joined: 12月 2023
Offline
tamte
there are 2 factors you need to consider

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!
  • Quick Links