Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Get position of particle by script
#3
After a few Failure, i come back to you...
[Image: HCBtlWcdPbl_Sans-titre.png]
I do not need math, I can handle it, but i need to find the right particle position depending of the rope, and i fail to find it...
I try your link
http://obi.virtualmethodstudio.com/tutor...icles.html

I manage to find the first particle:
actor.GetParticlePosition(0)

OK, but now, i want the "last": actor.GetParticlePosition(actor.velocities.Length - 1)
But it doesn't work...
Maybe this is caused by the 100 pooled particle ? so I do that:
actor.GetParticlePosition(actor.velocities.Length - 1 - rope.PooledParticle)

But no way... 
[Image: HCBt4df0Tml_Capture2.PNG]
[Image: HCBt45qdsql_Capture.PNG]

I think i'm close, but i didn't manage to find THE point who are always close to the other extremity of the rope.
I you can help me i'm stuck on it since last time 

Thanks
Reply


Messages In This Thread
RE: Get position of particle by script - by usernameHed - 27-03-2018, 08:36 PM