What is model:PivotTo()?

hello, I’m trying to pivot my model to a part however for some reason the model is “not centered” here is an image of what I’m talking about.


see how the model is not centered even though we clearly see the outline box gets the enter model?
It causes my model to pivot incorrectly which screws my entire game up
image
what the hell
any help?

what is the primary part of your model? that determines the default pivot cframe of the model and if its not centered in your model then thats the problem. you can also manually shift the pivot in the properties of the model

it has no primary part
erkljgggggggggggggggggggggggg

the easiest fix would be to set the big gray square part as the primary part of the model since it seems thats what you want the model to be centered at.

You can use Pivot Tools to correct the pivot point.

2 Likes

image
I would also like to point out its a more complex structure system

try setting Floor0 to the primary part and see if that fixes it

i set floor0 to primary part and now its floating
image

yeah you will still have to position it, but the pivot should be centered in the gray square

You can use Pivot Tools instead of experimenting with different primary parts.

do you think its possible I accidentally messed with the pivot tool without realizing and it messsed it up? is there a way to undo those changes

That is a possibility. You can click the Reset button to restore the pivot point to its default position.

how do I access the pivot tools and were is this reset button

Pivot Tools are in the Model tab. I recommend looking at the page I sent above.

image
i clicked this and it seemed to reset the pivot. was that the correct reset pivot button

Yes, that is the correct reset button.

it worked thanks. i can see how an edit pivot button could mess developers up if they pressed it accidentally but also make others lives easier. Have a nice day because I almost went to a previous save file which would have meant transferring a lot of updated work but this your responses saved me. Thank <3 :wolf:

2 Likes

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