This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
prpl:ishull [2018/06/17 17:51] – created kajacx | prpl:ishull [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 8: | Line 8: | ||
=== Description === | === Description === | ||
- | Checks if the given particle is a virtual | + | Checks if the given particle is a virtual hull particle. Virtual |
- | The only way to get a virtual particle ID is to watch the current PID counter (by creating a particle on each frame) and calling this function (IsHull) to check if that particle is a virtual particle. | + | One way to get the virtual |
+ | |||
+ | Emergent is also implemented as a virtual particle (see [[prpl: | ||
=== Examples === | === Examples === | ||
Line 22: | Line 24: | ||
0 0 0 0 0 0 CreateParticle ->pid | 0 0 0 0 0 0 CreateParticle ->pid | ||
<-pid 1 DestroyParticle | <-pid 1 DestroyParticle | ||
- | |||
#count hull particles | #count hull particles | ||
Line 37: | Line 38: | ||
#print the list of not empty | #print the list of not empty | ||
< | < | ||
- | " | + | " |
endif | endif | ||
</ | </ | ||