Problem in Grid movement

after the whole code, my blocks/cubes are not snipping by given grideSize even with or without the code. help me please

Hi Usama,

Are there any error messages in your Console? Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture?

yes i,ve overviewed every script & nothing found wrong there. still they are not working

Are there any error messages in your Console? If not, please share your script here. Also share a screenshot of the Inspector of one of your cubes.


See also:









here it is

Please note, it’s better to copy/paste your code and apply the code fencing characters, rather than using screenshots. Screenshots are ideal for displaying specific details from within a game engine editor or even error messages, but for code, they tend to be less readable, especially on mobile devices which can require extensive zooming and scrolling.

You also prevent those that may offer to help you the ability to copy/paste part of your code back to you with suggestions and/or corrections, meaning that they would need to type a potentially lengthy response. You will often find that people are more likely to respond to your questions if you make it as easy as possible for them to do so.

Hope this helps :slight_smile:


See also;

This topic was automatically closed after 14 days. New replies are no longer allowed.

Privacy & Terms