I have a very simple project that creates an impulse on the rectangle towards a click/touch. The rectangle encounters a nonexistent barrier when two conditions are met.
1. The rectangle has Scroll-To behavior.
2. The layout is larger than the screen size.
The barrier is essentially a right wall near the middle of the screen and a floor near the middle of the screen that it cannot move past. I have only tested in Chrome.
If I remove the Scroll-To behavior it works fine. If the layout is the same as the screen size it also works fine.
I was hoping to have levels larger than the screen size and have the screen scroll with the player. Any one have an idea what the problem is?
Let me know if the link does not work.