Obi Official Forum

Full Version: Particles position
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

Can help me how to get simulated particle position in script?
(19-12-2019, 01:04 PM)djsaman Wrote: [ -> ]Hello!

Can help me how to get simulated particle position in script?

Yep. There's a manual page dedicated entirely to that:
http://obi.virtualmethodstudio.com/tutor...icles.html

Basically you do:

Code:
// solver index of the first particle in the actor.
int solverIndex = actor.solverIndices[particleIndex];

// use it to get the particle's current position.
var position = solver.positions[solverIndex];