mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-07 13:05:41 +00:00
4ec5a39aa6
* Add TransformSync behaviour * NetworkPlayer using TransformSync * TransformSync adjustments to make it work for more than just player objects * Rename for clarity * Network ship being created from prefab * Use isAuthority instead of isLocalPlayer * Actually sync ships * Fix offset * Perfect offset * Smooth damp position * Smooth damn transform rotation * Showing ship landing gear * Sync ships with sectors * Source comment for quaternion smooth damp * just some small tweaks (#25) Co-authored-by: AmazingAlek <alek.ntnu@gmail.com>
97 lines
2.3 KiB
Plaintext
97 lines
2.3 KiB
Plaintext
%YAML 1.1
|
|
%TAG !u! tag:unity3d.com,2011:
|
|
--- !u!1001 &100100000
|
|
Prefab:
|
|
m_ObjectHideFlags: 1
|
|
serializedVersion: 2
|
|
m_Modification:
|
|
m_TransformParent: {fileID: 0}
|
|
m_Modifications: []
|
|
m_RemovedComponents: []
|
|
m_ParentPrefab: {fileID: 0}
|
|
m_RootGameObject: {fileID: 1651223990902024}
|
|
m_IsPrefabParent: 1
|
|
--- !u!1 &1651223990902024
|
|
GameObject:
|
|
m_ObjectHideFlags: 0
|
|
m_PrefabParentObject: {fileID: 0}
|
|
m_PrefabInternal: {fileID: 100100000}
|
|
serializedVersion: 5
|
|
m_Component:
|
|
- component: {fileID: 4928834428794828}
|
|
- component: {fileID: 114173126939784982}
|
|
- component: {fileID: 114412165868198726}
|
|
m_Layer: 0
|
|
m_Name: NetworkShip
|
|
m_TagString: Untagged
|
|
m_Icon: {fileID: 0}
|
|
m_NavMeshLayer: 0
|
|
m_StaticEditorFlags: 0
|
|
m_IsActive: 1
|
|
--- !u!4 &4928834428794828
|
|
Transform:
|
|
m_ObjectHideFlags: 1
|
|
m_PrefabParentObject: {fileID: 0}
|
|
m_PrefabInternal: {fileID: 100100000}
|
|
m_GameObject: {fileID: 1651223990902024}
|
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
m_Children: []
|
|
m_Father: {fileID: 0}
|
|
m_RootOrder: 0
|
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
--- !u!114 &114173126939784982
|
|
MonoBehaviour:
|
|
m_ObjectHideFlags: 1
|
|
m_PrefabParentObject: {fileID: 0}
|
|
m_PrefabInternal: {fileID: 100100000}
|
|
m_GameObject: {fileID: 1651223990902024}
|
|
m_Enabled: 1
|
|
m_EditorHideFlags: 0
|
|
m_Script: {fileID: 372142912, guid: dc443db3e92b4983b9738c1131f555cb, type: 3}
|
|
m_Name:
|
|
m_EditorClassIdentifier:
|
|
m_SceneId:
|
|
m_Value: 0
|
|
m_AssetId:
|
|
i0: 140
|
|
i1: 195
|
|
i2: 85
|
|
i3: 223
|
|
i4: 109
|
|
i5: 103
|
|
i6: 105
|
|
i7: 228
|
|
i8: 74
|
|
i9: 55
|
|
i10: 186
|
|
i11: 128
|
|
i12: 89
|
|
i13: 228
|
|
i14: 145
|
|
i15: 61
|
|
m_ServerOnly: 0
|
|
m_LocalPlayerAuthority: 1
|
|
--- !u!114 &114412165868198726
|
|
MonoBehaviour:
|
|
m_ObjectHideFlags: 1
|
|
m_PrefabParentObject: {fileID: 0}
|
|
m_PrefabInternal: {fileID: 100100000}
|
|
m_GameObject: {fileID: 1651223990902024}
|
|
m_Enabled: 1
|
|
m_EditorHideFlags: 0
|
|
m_Script: {fileID: -1768714887, guid: dc443db3e92b4983b9738c1131f555cb, type: 3}
|
|
m_Name:
|
|
m_EditorClassIdentifier:
|
|
m_TransformSyncMode: 1
|
|
m_SendInterval: 0.083333336
|
|
m_SyncRotationAxis: 7
|
|
m_RotationSyncCompression: 0
|
|
m_SyncSpin: 0
|
|
m_MovementTheshold: 0.001
|
|
m_VelocityThreshold: 0.0001
|
|
m_SnapThreshold: 5
|
|
m_InterpolateRotation: 1
|
|
m_InterpolateMovement: 1
|