So I changed my approached for creating a 3d cube (Related to my other post here, Help creating complex GUI)
I am trying to do the following:
- a cube moves in direction X each frame
- if cube crosses threshold, create another cube next to it, with no space in between.
- move both cubes in same direction (aka parenting)
Very weird, it kind of worked with only 3 blocks, but once I put 4, or 5+, it goes into a infinite loop, or places blocks in wrong places.
I had this working perfectly with 3 cubes, but any more, and things start to go haywire, and I am not able to debug it. Is there some way to easier debug a SPS?
https://playground.babylonjs.com/#GSB0ZC#1 (use the “A” button to do a frame at a time)