30-09-2024, 08:24 AM
(This post was last modified: 30-09-2024, 08:33 AM by josemendez.)
Hi,
The documentation for GetParticlePosition() states:
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:
To understand the difference between actor and solver particle indices, see:
http://obi.virtualmethodstudio.com/manua...icles.html
kind regards
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