19-12-2019, 01:16 PM
(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];