Skip to content

Commit 341bc3f

Browse files
Merge branch 'develop-2.0.0' into fix/localhost-resolution
2 parents 013a3aa + b8fa7d6 commit 341bc3f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

com.unity.netcode.gameobjects/Runtime/Components/RigidbodyContactEventManager.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,13 @@ public void Execute(int index)
374374

375375
var result = new JobResultStruct()
376376
{
377+
#if UNITY_6000_3_0A6_OR_HIGHER
378+
ThisInstanceID = PairedHeaders[index].bodyEntityId,
379+
OtherInstanceID = PairedHeaders[index].otherBodyEntityId,
380+
#else
377381
ThisInstanceID = PairedHeaders[index].bodyInstanceID,
378382
OtherInstanceID = PairedHeaders[index].otherBodyInstanceID,
383+
#endif
379384
AverageNormal = averageNormal,
380385
HasCollisionStay = collisionStaycount != 0,
381386
AverageCollisionStayNormal = averageCollisionStay,

com.unity.netcode.gameobjects/Runtime/Unity.Netcode.Runtime.asmdef

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@
7272
"name": "Unity",
7373
"expression": "6000.1.0a1",
7474
"define": "HOSTNAME_RESOLUTION_AVAILABLE"
75+
},
76+
{
77+
"name": "Unity",
78+
"expression": "6000.3.0a6",
79+
"define": "UNITY_6000_3_0A6_OR_HIGHER"
7580
}
7681
],
7782
"noEngineReferences": false

0 commit comments

Comments
 (0)