Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Changing the rope's position
#4
(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!
Reply


Messages In This Thread
Changing the rope's position - by Crystalius - 08-05-2024, 05:33 PM
RE: Changing the rope's position - by spikebor - 09-05-2024, 05:59 AM
RE: Changing the rope's position - by josemendez - 09-05-2024, 08:05 AM
RE: Changing the rope's position - by Crystalius - 09-05-2024, 08:54 AM