Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Defined a pooled particles from a given length
#2
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;
Reply


Messages In This Thread
RE: Defined a pooled particles from a given length - by josemendez - 09-02-2022, 08:36 AM