Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wrong Particle Position
#2
Hi,

The documentation for GetParticlePosition() states:
Quote:Given a solver particle index, returns the position of that particle in world space.

The argument of the function is also called "solverIndex". You're passing an actor particle index instead, so it's always returning the position for the same particle.

You must pass an solver particle index instead, like so:

Code:
GetParticlePosition(actor.solverIndices[3]); // position of 3rd particle in the actor.

To understand the difference between actor and solver particle indices, see:
http://obi.virtualmethodstudio.com/manua...icles.html

kind regards
Reply


Messages In This Thread
Wrong Particle Position - by TryBios - 29-09-2024, 04:42 PM
RE: Wrong Particle Position - by josemendez - 30-09-2024, 08:24 AM
RE: Wrong Particle Position - by josemendez - 30-09-2024, 08:31 AM