Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Defined a pooled particles from a given length
#3
(09-02-2022, 08:36 AM)josemendez Wrote: Particles are spaced differently depending on rope resolution, so 100 particles != 100 meters. Simply divide your max distance by the rope's inter-particle distance. That will give you the pool size. like this:

Code:
int poolSize = Mathf.CeilToInt(maxDistance / rope.ropeBlueprint.interParticleDistance) + 1;

But can the number of pooled particles be changed in runtime ?
Reply


Messages In This Thread
RE: Defined a pooled particles from a given length - by lufydad - 09-02-2022, 10:52 AM