To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/E9D6EF06-EC47-4829-A59B-1231C719440B%40gmail.com.
On line 20 of your code you linked, I see a double indented line "t = t + dt". However, from your first message, it seems that there is some more holistic problem you are working on?
To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/CAKdMb%3Dyb16cVaRbZWFanGuj%2BYmnv_q7rBTjO2E5w_ORnZvM_gQ%40mail.gmail.com.
I checked in a text editor that shows invisible characters, and I see there’s a single tab character on line 20. Did you edit your code originally in a different editor?
--
---
You received this message because you are subscribed to the Google Groups "Glowscript Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glowscript-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/5FF156E7-BE4C-4301-B32E-554CD32621A8%40gmail.com.
> To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/CAB541NsxNNcCko64%3Dyd0bSgM67R70Xe1-_XyPNNAhnsUksgZNg%40mail.gmail.com.
--
---
You received this message because you are subscribed to the Google Groups "Glowscript Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glowscript-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/5FF156E7-BE4C-4301-B32E-554CD32621A8%40gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/CAKdMb%3Dyb16cVaRbZWFanGuj%2BYmnv_q7rBTjO2E5w_ORnZvM_gQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/CAB541NsxNNcCko64%3Dyd0bSgM67R70Xe1-_XyPNNAhnsUksgZNg%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/CAB541NsxNNcCko64%3Dyd0bSgM67R70Xe1-_XyPNNAhnsUksgZNg%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/CAKdMb%3DxvTu0pi9jsXPrMSK9HK1SdVRExQGWyDqKLg%3D9FKyqv9w%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/C45CAE9F-C8DB-4EA2-9BEC-348DCE6EE901%40gmail.com.
Aha. As Harlan pointed out, the issue is that you have different indention in the same scope. I would vote to replace every tab with four spaces.
--
---
You received this message because you are subscribed to the Google Groups "Glowscript Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glowscript-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/7F8C9957-3521-406A-BEA1-E96DADD330DF%40gmail.com.
> To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/CAKdMb%3Dzdub5-wKVsx1YkdkW-BhyTdX_xDejd8A9msgTX5yksOQ%40mail.gmail.com.
> <Screenshot 2025-06-17 200032.png>
--
---
You received this message because you are subscribed to the Google Groups "Glowscript Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glowscript-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/7F8C9957-3521-406A-BEA1-E96DADD330DF%40gmail.com.