Skip to content

Commit b92c6b8

Browse files
fix: test project physics sample (#2227)
* fix Removed the extra NetworkTransform no longer needed form the PhyscisPlayer prefab since the PlayerMovement class derives from NetworkTransform. * update moving the physics sample higher in the list and the sample scene to the bottom.
1 parent 993c3d8 commit b92c6b8

File tree

2 files changed

+20
-32
lines changed

2 files changed

+20
-32
lines changed

testproject/Assets/Prefabs/PhysicsPlayer.prefab

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ GameObject:
1414
- component: {fileID: 4079352819444256612}
1515
- component: {fileID: -3775814466963834669}
1616
- component: {fileID: 1750810845806302260}
17-
- component: {fileID: -6757728931092222887}
1817
- component: {fileID: 4053684789567975459}
1918
- component: {fileID: 3885376173097824340}
2019
- component: {fileID: 1991357795387791033}
@@ -35,6 +34,7 @@ Transform:
3534
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
3635
m_LocalPosition: {x: 5, y: 0.5, z: 5}
3736
m_LocalScale: {x: 1, y: 1, z: 1}
37+
m_ConstrainProportionsScale: 0
3838
m_Children: []
3939
m_Father: {fileID: 0}
4040
m_RootOrder: 0
@@ -58,6 +58,7 @@ MeshRenderer:
5858
m_CastShadows: 1
5959
m_ReceiveShadows: 1
6060
m_DynamicOccludee: 1
61+
m_StaticShadowCaster: 0
6162
m_MotionVectors: 1
6263
m_LightProbeUsage: 1
6364
m_ReflectionProbeUsage: 1
@@ -133,33 +134,6 @@ Rigidbody:
133134
m_Interpolate: 1
134135
m_Constraints: 112
135136
m_CollisionDetection: 1
136-
--- !u!114 &-6757728931092222887
137-
MonoBehaviour:
138-
m_ObjectHideFlags: 0
139-
m_CorrespondingSourceObject: {fileID: 0}
140-
m_PrefabInstance: {fileID: 0}
141-
m_PrefabAsset: {fileID: 0}
142-
m_GameObject: {fileID: 4079352819444256614}
143-
m_Enabled: 1
144-
m_EditorHideFlags: 0
145-
m_Script: {fileID: 11500000, guid: e96cb6065543e43c4a752faaa1468eb1, type: 3}
146-
m_Name:
147-
m_EditorClassIdentifier:
148-
SyncPositionX: 1
149-
SyncPositionY: 1
150-
SyncPositionZ: 1
151-
SyncRotAngleX: 1
152-
SyncRotAngleY: 1
153-
SyncRotAngleZ: 1
154-
SyncScaleX: 1
155-
SyncScaleY: 1
156-
SyncScaleZ: 1
157-
PositionThreshold: 0
158-
RotAngleThreshold: 0
159-
ScaleThreshold: 0
160-
InLocalSpace: 0
161-
Interpolate: 1
162-
FixedSendsPerSecond: 5
163137
--- !u!114 &4053684789567975459
164138
MonoBehaviour:
165139
m_ObjectHideFlags: 0
@@ -184,8 +158,22 @@ MonoBehaviour:
184158
m_Script: {fileID: 11500000, guid: 82b41b172a31546ffba450f1418f4e69, type: 3}
185159
m_Name:
186160
m_EditorClassIdentifier:
187-
m_Speed: 5
188-
m_RotSpeed: 2.5
161+
SyncPositionX: 1
162+
SyncPositionY: 1
163+
SyncPositionZ: 1
164+
SyncRotAngleX: 1
165+
SyncRotAngleY: 1
166+
SyncRotAngleZ: 1
167+
SyncScaleX: 1
168+
SyncScaleY: 1
169+
SyncScaleZ: 1
170+
PositionThreshold: 0.001
171+
RotAngleThreshold: 0.01
172+
ScaleThreshold: 0.01
173+
InLocalSpace: 0
174+
Interpolate: 1
175+
Speed: 4
176+
RotSpeed: 1
189177
--- !u!114 &1991357795387791033
190178
MonoBehaviour:
191179
m_ObjectHideFlags: 0

testproject/Assets/Samples/SamplesMenu.unity

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2526,11 +2526,11 @@ MonoBehaviour:
25262526
- {fileID: 11400000, guid: 0509eb053ce4ef749afd8495f13128f1, type: 2}
25272527
- {fileID: 11400000, guid: 9a8d9296fb33f794f95514bf38de3cf9, type: 2}
25282528
- {fileID: 11400000, guid: 7fdc32fee173cca45a4601ba234954d0, type: 2}
2529-
- {fileID: 11400000, guid: 21aae92071ad50448a45b013d8346639, type: 2}
2529+
- {fileID: 11400000, guid: 7289196bc52552d458b24c94498df352, type: 2}
25302530
- {fileID: 11400000, guid: 660535b6e155b5b4bbede52313fcb32e, type: 2}
25312531
- {fileID: 11400000, guid: d2e34ed37c087154dbd7f89fd463801b, type: 2}
25322532
- {fileID: 11400000, guid: 138603ab28f532140b48a57bea0e54b0, type: 2}
2533-
- {fileID: 11400000, guid: 7289196bc52552d458b24c94498df352, type: 2}
2533+
- {fileID: 11400000, guid: 21aae92071ad50448a45b013d8346639, type: 2}
25342534
m_SceneMenusDropDownList: {fileID: 1362704539}
25352535
m_OptionsList:
25362536
m_Options:

0 commit comments

Comments
 (0)