Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Particles position
#1
Hello!

Can help me how to get simulated particle position in script?
Reply
#2
(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];
Reply