Will :SetPrimaryPartCFrame be a problem in the future for my FPS-Style spray painting game?

I recently was looking on the Do you use the PrimaryPart property of Models, and if so for what purposes? Topic in the discussion page, and I saw this:

Calculation imprecisions cause the model to tear apart slowly with each call and it becomes more noticeable the more you make calls. I’d prefer to write my own implementation of the function.

This quote comes from @colbert2677, and he’s talking about :SetPrimaryPartCFrame. The problem is that my FPS-Style spray painting game uses :SetPrimaryPartCFrame to repeatedly move the arms to the cameras cframe. So far I don’t think I have came across any problems but I have only played my game in test-runs for short periods of time, but will this be a problem in the future when I play the game for longer periods of time?

Thank you for any help, god bless!

If the parts in the arms are welded together (as the presumably are so that they don’t fall apart), then the welds will keep things from drifting apart.

If the arms are made up of individual anchored parts, then yes, you will have drift issues. You could fix this by welding the parts in the arms together before moving them around.

3 Likes

Thank you! Do I have to unanchor the parts in the model? ( Also I made the mistake of not researching if someone has talked about this before, sorry! )

You would have to unanchor all but the PrimaryPart, since if both “ends” of a weld are Anchored it has no effect. At least one of the parts has to be unanchored so that the weld can move it.

2 Likes