[SOLVED] Model.Position variable maybe?

We have MoveTo, TranslateBy, GetExtentsSize functions but no way of getting the position?
I can solve this other ways, but I just thought it’d be a natural thing given it already has these 3 functions.

4 Likes

What about:

Model:GetPrimaryPartCFrame().p

I suppose that doesn’t return the centre of the model, but that’s what I use if I want the Model’s position.

1 Like

[quote] What about:

Model:GetPrimaryPartCFrame().p

I suppose that doesn’t return the centre of the model, but that’s what I use if I want the Model’s position. [/quote]

As you said, it does not give the center of the model which makes it useless in precise calculations.

1 Like

Model:GetModelCFrame() exists, even though it was deprecated without reason. It still works perfectly fine though.

3 Likes

Define “center”.

Centre of mass? Centre of minimal bounding sphere? Centre of minimal bounding box?

1 Like

[quote] Define “center”.

Centre of mass? Centre of minimal bounding sphere? Centre of minimal bounding box? [/quote]

2 Likes

Works like a charm! Thanks!

1 Like