BilliardsPredicted: removed NetworkRigidbody sync. we want to predict & reconcile instead.

This commit is contained in:
mischa 2023-09-01 11:14:34 +02:00
parent 42e1a0ca5f
commit a1b13267a8
3 changed files with 1 additions and 71 deletions

View File

@ -15,7 +15,6 @@ GameObject:
- component: {fileID: 3429911415116987811}
- component: {fileID: -177125271246800426}
- component: {fileID: 5308121378143249733}
- component: {fileID: -4867038537898682568}
m_Layer: 0
m_Name: RedPredicted
m_TagString: Untagged
@ -149,37 +148,3 @@ MonoBehaviour:
syncDirection: 0
syncMode: 0
syncInterval: 0
--- !u!114 &-4867038537898682568
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3429911415116987808}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3b20dc110904e47f8a154cdcf6433eae, type: 3}
m_Name:
m_EditorClassIdentifier:
syncDirection: 0
syncMode: 0
syncInterval: 0
target: {fileID: 3429911415116987812}
clientAuthority: 0
syncPosition: 1
syncRotation: 1
syncScale: 0
interpolatePosition: 1
interpolateRotation: 1
interpolateScale: 0
coordinateSpace: 0
sendIntervalMultiplier: 1
timelineOffset: 0
showGizmos: 0
showOverlay: 0
overlayColor: {r: 0, g: 0, b: 0, a: 0.5}
onlySyncOnChange: 0
bufferResetMultiplier: 3
positionSensitivity: 0.01
rotationSensitivity: 0.01
scaleSensitivity: 0.01

View File

@ -94,7 +94,7 @@ void OnTriggerEnter(Collider other)
{
rigidBody.position = startPosition;
rigidBody.Sleep(); // reset forces
GetComponent<NetworkRigidbodyUnreliable>().RpcTeleport(startPosition);
// GetComponent<NetworkRigidbodyUnreliable>().RpcTeleport(startPosition);
}
}
}

View File

@ -146,7 +146,6 @@ GameObject:
- component: {fileID: 3429911415116987811}
- component: {fileID: 1848203816128897140}
- component: {fileID: 6607303410184343467}
- component: {fileID: -2991986576794647411}
m_Layer: 0
m_Name: WhitePredicted
m_TagString: Untagged
@ -284,37 +283,3 @@ MonoBehaviour:
dragIndicator: {fileID: 982362982}
rigidBody: {fileID: 1848203816128897140}
forceMultiplier: 100
--- !u!114 &-2991986576794647411
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3429911415116987808}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3b20dc110904e47f8a154cdcf6433eae, type: 3}
m_Name:
m_EditorClassIdentifier:
syncDirection: 0
syncMode: 0
syncInterval: 0
target: {fileID: 3429911415116987812}
clientAuthority: 0
syncPosition: 1
syncRotation: 1
syncScale: 0
interpolatePosition: 1
interpolateRotation: 1
interpolateScale: 0
coordinateSpace: 0
sendIntervalMultiplier: 1
timelineOffset: 0
showGizmos: 0
showOverlay: 0
overlayColor: {r: 0, g: 0, b: 0, a: 0.5}
onlySyncOnChange: 0
bufferResetMultiplier: 3
positionSensitivity: 0.01
rotationSensitivity: 0.01
scaleSensitivity: 0.01