coderespawn / dungeon-architect-ue4-issues

6 stars 0 forks source link

Mobile run time generation Z rotation wrong #14

Closed vaskes closed 3 years ago

vaskes commented 7 years ago

Steps to reproduce:

  1. Use Topdown_SciFi assets and DA_SciFi_K4 profile from starter kit. Dungeon theme SciFi_NoRoof.
  2. Make a runtime dungeon map and compile for mobiles (Android ETC2 in my case)
  3. Deploy on actual phone and try to play. Result: All walls messed and don't match the floor.

Why this happens: Topdown_SciFi assets have pivot point not in the centre of mass of mesh but in left- bottom corner. During buildtime and on a windows rotation correct and around pivot Z axis. On a mobiles during runtime generation wall rotates not around pivot axis, but center of mass of a wall mesh. With a prebuilt dungeons mobiles works fine.