Quick networking question

Alright so I have a quick question with transfering the smallest amount of data possible over client to server.

Technically if I convert a CFrame into an Axis angle(vector3 and number), wouldn’t that be cheaper to send over the client/server boundary than the entire CFrame itself?

Or would this actually break the cframe?

If you can get the CFrame to successfully reconstruct on the other end, I wouldn’t see what the issue is, but I’ve personally struggled to get CFrame.fromAxisAngle to do what I want since it really needs one more vector to faithfully recreate every possible CFrame.

For what it’s worth, it seems like the engine already converts CFrames to more space-efficient representations prior to networking. I’m assuming it converts them to Euler angles since that cuts down the total numbers communicated from 12 to 6, but I don’t actually know for sure, I’ve just seen that the rotation can sometimes be slightly different from the raw CFrame after networking.

1 Like

Ah kk. I was thinking that some precision would be lost in the process. Thanks!

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