You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, when rewriting snow simulation from mpm88.cpp I've encountered problem when assigning field element to a variable creates a copy instead of reference (particles didn't move). E.x.:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, when rewriting snow simulation from mpm88.cpp I've encountered problem when assigning field element to a variable creates a copy instead of reference (particles didn't move). E.x.:
It would be nice to have something like
to tell that p will be reference to particles[idx]. I'm not sure how hard it would be though or if it is already possible.
Beta Was this translation helpful? Give feedback.
All reactions