Moving Grid System

I am trying to make a Cruise Ship building game with free placement and larger ships than “Cruise Ship Tycoon”, but I’m stumped on the grid system. I made a functioning 2 stud grid system but when the ship moves, everything would become offset. If the ship moves half a stud the grid system will not work because nothing will be lined up. How would I go about making a Grid System that is relative to the moving ship. I’ve been coding roblox games for almost 5 years now and I still can’t figure this out. I just need an outline to go a about doing it, I can probably right the code

Any help would be apricated!

Your grid needs to be based on some part of the ship instead of the world itself. This means all your grid math has to be done in an object space.

Long read but a full explanation of how and why this math works:
Cube Rotator Mindset

After that you might be able to use GridPlacer. Of course I could assist you if you wanted to use it.

1 Like

I did some more research and realized all I had to do was multiply my CFrame by the local axis parts rotation and I’d be fine. Thanks for the help though!