#Position offset when importing model

1 messages · Page 1 of 1 (latest)

native wigeon
#

so im trying to put the gun dead-center where the empty is, but unity is importing with the same offset that i have in blender so how can i remove that offset (maybe when exporting from blender)?

zealous nebula
#

In the video when you reset the transform of the pistol, it returns to the center of the gameobject like how you want it to

native wigeon
#

the problem is, it's still offseted on the y-axis

zealous nebula
#

Thats because the empty gameobject (GameObject in hierarchy) is set to that position

#

when you child an object to another object, the child will follow the parent

#

so your pistol is at 0,0,0 of the parent object

#

you can position the parent object whereever you want it now

native wigeon
#

my point is

#

th weapon is offseted in blender

#

and it's carrying that offset into unity

#

so when i reset the weapon's transform in unity, it still won't be in the middle of the empty gameobject because the pivot point is different

#

so is there a way for me to change that pivot when exporting/importing

zealous nebula
#

ah i see

#

why do you have the offset in blender?

native wigeon
#

it's hard to model with the model being too close to the grid

#

and while yeash, i can just change the pivot within blender

#

i see pretty much everyone model the same way and somehow export it with a different pivot

zealous nebula
#

One way to get rid of the offset (maybe) is to just reset the position in blender and export it, and you can undo it in blender after the export if you want to

#

another way would be to make another empty in unity, position it where you want the pivot of the pistol to be, and child this object to the original empty

native wigeon
#

honestly yeah i might as well just go with your first suggestion

#

been kinda getting bored looking at the same stuff for like an hour now lol

#

tried it

#

it does work

#

thanks 🙏

zealous nebula
#

Here's the second method if you ever need it elsewhere