Hi
hhg21011998 It might be better to ask
dop2000 on the thread you linked to so if anyone else searched for drag and drop physics example, they'll find it there.
Set var to (var=0?1:0) means "if var=0, set it to 1, otherwise set it to 0"
https://en.wikipedia.org/wiki/Ternary_conditional_operator
Thanks for the link.
So if var=0, set it to 1, otherwise set it to 0... which sets it to 1? 0 will always be 1? Why set it back to 0?
Wouldn't if var=0, set it to 1 do the same thing?