跳至主內容

搜尋

How to detect non-movement properly?

  • .

    Try using a calculator and setting velocity = 0

  • TAPgiles

    How are you using the movement sensor? It's likely to do with however you are setting it up.

    I'd use the overall velocity, check if it's < 0.01.

  • hazee_dnb

    To maybe better put my question - just how do I make the movement sensor more sensitive to non-movement when using the NOT gate? Keep in a mind that I'm fairly new to logic, so maybe I'm missing some crucial setting or other gadget to do this - please let me know! Thank you

  • .

    I tried to set this up myself and I think the problem with the not gate is that it sends a partial signal for some reason even when the velocity isn't zero. So if you replace the NOT gate with a calculator set to "equals" and plug the output overall velocity from the movement sensor into input 1 on the calculator, the calculator should output a signal when the object isn't moving.

  • hazee_dnb

    To whoever suggested using a calculator set to equal instead of a not gate - thank you so much! That's exactly what I needed, now it detects non-movement as it should and now I finally finished my scoring system :) meanwhile I added other conditions aswell like non-scratching and non-rolling, but ultimately it was still wonky because of the movement sensor acting weird... Now it works perfectly, so thanks again and check out IMPlaygrounds [WIP demo] https://indreams.me/dream/mVmuManJWMb :)

登入寫評論。