立方体的位置同步

This commit is contained in:
2026-09-20 17:47:51 +08:00
parent 02265e75ca
commit 395db1a3f7
2 changed files with 109 additions and 5 deletions
+77 -2
View File
@@ -14,6 +14,8 @@ GameObject:
- component: {fileID: 6765530772190315426}
- component: {fileID: 8499328425325690813}
- component: {fileID: 8072914292444380081}
- component: {fileID: -809832392475339488}
- component: {fileID: 4615427192473594859}
m_Layer: 0
m_Name: ACube
m_TagString: Untagged
@@ -171,7 +173,7 @@ MonoBehaviour:
_initializeOrder: 0
_preventDespawnOnDisconnect: 0
_defaultDespawnType: 0
_initializedTimestamp: -8584117148313536437
_initializedTimestamp: -8584117104219334400
--- !u!114 &8072914292444380081
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -185,5 +187,78 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier: FishNet.Runtime::FishNet.Object.EmptyNetworkBehaviour
_componentIndexCache: 0
_addedNetworkObject: {fileID: 0}
_addedNetworkObject: {fileID: 8499328425325690813}
_networkObjectCache: {fileID: 8499328425325690813}
--- !u!54 &-809832392475339488
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2655148725409191110}
serializedVersion: 5
m_Mass: 1
m_LinearDamping: 0
m_AngularDamping: 0.05
m_CenterOfMass: {x: 0, y: 0, z: 0}
m_InertiaTensor: {x: 1, y: 1, z: 1}
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_ImplicitCom: 1
m_ImplicitTensor: 1
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!114 &4615427192473594859
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2655148725409191110}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a2836e36774ca1c4bbbee976e17b649c, type: 3}
m_Name:
m_EditorClassIdentifier: FishNet.Runtime::FishNet.Component.Transforming.NetworkTransform
_componentIndexCache: 255
_addedNetworkObject: {fileID: 8499328425325690813}
_networkObjectCache: {fileID: 0}
_componentConfiguration: 2
_synchronizeParent: 0
_packing:
Position: 1
Rotation: 1
Scale: 0
_useScaledTime: 1
_interpolation: 2
_extrapolation: 2
_enableTeleport: 0
_teleportThreshold: 1
_clientAuthoritative: 1
_sendToOwner: 1
_interval: 1
_synchronizePosition: 1
_positionSensitivity: 0.001
_positionSnapping:
X: 0
Y: 0
Z: 0
_synchronizeRotation: 1
_rotationSnapping:
X: 0
Y: 0
Z: 0
_synchronizeScale: 1
_scaleSensitivity: 0.001
_scaleSnapping:
X: 0
Y: 0
Z: 0