09-05-2024, 08:54 AM
(09-05-2024, 08:05 AM)josemendez Wrote: Hi!
rope.Teleport(position, rotation); should work. See Spikebor's code above for what seems like a complete solution that supports parent transforms and resetting particles as well.
GetParticlePosition() is mostly used from editor, as it abstracts away the differences between play mode /editor when it comes to rendering particles. At runtime usually you would directly access the solver's data arrays, that contain all per-particle data: positions, velocities, etc. This is what Teleport() does internally: it iterates trough all particle positions and rotates/translates them.
See:
http://obi.virtualmethodstudio.com/manua...icles.html
kind regards,
Thank you for both of your replies!
I've never come across teleport anywhere yet. No idea such functionality existed. Will do some tinkering with it and will come back again if I can't climb out of this.
Kind regards!