The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
The Powder Toy/Lua scripting
/
Getting a particle's index
«
1
»
Getting a particle's index
Sussy_Tiago
10th October
Member
0
Permalink
How can i get a particle's index just by knowing its XY coordinates?
LBPHacker
10th October
Developer
0
Permalink
https://powdertoy.co.uk/Wiki/W/Lua_API:Simulation.html#simulation.partID
There's also sim.pmap and sim.photons, which only return non-energy and energy particles, respectively.
«
1
»