Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Asset Forge

Create your own 3D models and 2D sprites! · By Kenney

Inaccurate position/rotation when importing to Unity3D

A topic by criipi created Jul 09, 2020 Views: 167
Viewing posts 1 to 1

I recently realized that models exported from Asset forge to Unity may occasionally be inaccurate by small magnitudes. E.g. instead of a Y-rotation of 90 degrees the rotation of a block is 90.00001. While the difference isn't visually noticeable directly there are a few issues where it's a problem for my use case. Firstly, I'm working on a game that leverages Unity's physics engine quite heavily. I noticed that when there was a small mismatch in rotation/position, gameobjects would have bizarre bounces and behaviors. Secondly, while the previous issue can be fixed by adjusting each block in the editor it means that I can't merge blocks on export in case the issue arises to a few blocks. And finally, when generating light maps  blocks that aren't aligned perfectly will draw a black shadow between the seams of the two blocks. Adjusting the blocks first and then generating the lightmaps doesn't seem to work since I assume the lightmaps are generated to the prefab which have the incorrect values unlike the instance of the prefab where the values are fixed.


Does anyone know a fix/workaround to this issue? I'm using the latest preview of Asset forge for what it's worth.