Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Particles position
#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


Messages In This Thread
Particles position - by djsaman - 19-12-2019, 01:04 PM
RE: Particles position - by josemendez - 19-12-2019, 01:16 PM