add ConfigurableJoint for testing

This commit is contained in:
mischa 2024-02-16 11:23:35 +01:00
parent 6fbfbcc276
commit 160b38a04c
6 changed files with 398 additions and 30 deletions

View File

@ -8,18 +8,17 @@ Material:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: LocalGhostMaterial
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
m_ValidKeywords: []
m_InvalidKeywords:
- _ALPHAPREMULTIPLY_ON
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000
stringTagMap:
RenderType: Transparent
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
@ -79,6 +78,7 @@ Material:
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 0
- __dirty: 1
m_Colors:
- _Color: {r: 1, g: 0, b: 0.067070484, a: 0.15686275}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

View File

@ -8,18 +8,17 @@ Material:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: RemoteGhostMaterial
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
m_ValidKeywords: []
m_InvalidKeywords:
- _ALPHAPREMULTIPLY_ON
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000
stringTagMap:
RenderType: Transparent
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:

View File

@ -0,0 +1,294 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &9164964146144852783
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1558678110355878795}
- component: {fileID: 418926227897578041}
- component: {fileID: 346824051992864524}
- component: {fileID: 8523059561838888280}
- component: {fileID: 5208676889587135713}
- component: {fileID: 8785535017486900984}
- component: {fileID: 3177208381448634059}
- component: {fileID: 7444349695939231439}
m_Layer: 0
m_Name: JointTest
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1558678110355878795
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9164964146144852783}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -15.53, y: 4.55, z: 23.125}
m_LocalScale: {x: 1.2309375, y: 1.2309375, z: 0.14560759}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 479
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &418926227897578041
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9164964146144852783}
m_Mesh: {fileID: 8974361040729358395, guid: 57a2734aac31a4cfbb7656d68533916d, type: 3}
--- !u!23 &346824051992864524
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9164964146144852783}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: -1620143331965842007, guid: 57a2734aac31a4cfbb7656d68533916d, type: 3}
- {fileID: -8350710125277546012, guid: 57a2734aac31a4cfbb7656d68533916d, type: 3}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!65 &8523059561838888280
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9164964146144852783}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 0.99999994, y: 0.99999994, z: 0.99999994}
m_Center: {x: 0, y: 0.49999997, z: 0}
--- !u!54 &5208676889587135713
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9164964146144852783}
serializedVersion: 4
m_Mass: 5
m_Drag: 0.5
m_AngularDrag: 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: 3
--- !u!153 &8785535017486900984
ConfigurableJoint:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9164964146144852783}
m_ConnectedBody: {fileID: 0}
m_ConnectedArticulationBody: {fileID: 0}
m_Anchor: {x: -3.86, y: 0.2, z: -0.8}
m_Axis: {x: 0, y: 1, z: 0}
m_AutoConfigureConnectedAnchor: 1
m_ConnectedAnchor: {x: -15.581419, y: 3.3861876, z: 23.573515}
serializedVersion: 3
m_SecondaryAxis: {x: 0, y: 1, z: 0}
m_XMotion: 0
m_YMotion: 0
m_ZMotion: 0
m_AngularXMotion: 1
m_AngularYMotion: 0
m_AngularZMotion: 0
m_LinearLimitSpring:
spring: 0
damper: 0
m_LinearLimit:
limit: 0
bounciness: 0
contactDistance: 0
m_AngularXLimitSpring:
spring: 0
damper: 0
m_LowAngularXLimit:
limit: -91.07543
bounciness: 0.2
contactDistance: 0
m_HighAngularXLimit:
limit: 89.54427
bounciness: 0.2
contactDistance: 0
m_AngularYZLimitSpring:
spring: 0
damper: 0
m_AngularYLimit:
limit: 0
bounciness: 0
contactDistance: 0
m_AngularZLimit:
limit: 0
bounciness: 0
contactDistance: 0
m_TargetPosition: {x: 0, y: 0, z: 0}
m_TargetVelocity: {x: 0, y: 0, z: 0}
m_XDrive:
serializedVersion: 4
positionSpring: 0
positionDamper: 0
maximumForce: 3.4028233e+38
useAcceleration: 0
m_YDrive:
serializedVersion: 4
positionSpring: 0
positionDamper: 0
maximumForce: 3.4028233e+38
useAcceleration: 0
m_ZDrive:
serializedVersion: 4
positionSpring: 0
positionDamper: 0
maximumForce: 3.4028233e+38
useAcceleration: 0
m_TargetRotation: {x: 0, y: 0, z: 0, w: 1}
m_TargetAngularVelocity: {x: 0, y: 0, z: 0}
m_RotationDriveMode: 0
m_AngularXDrive:
serializedVersion: 4
positionSpring: 0
positionDamper: 0
maximumForce: 3.4028233e+38
useAcceleration: 0
m_AngularYZDrive:
serializedVersion: 4
positionSpring: 0
positionDamper: 0
maximumForce: 3.4028233e+38
useAcceleration: 0
m_SlerpDrive:
serializedVersion: 4
positionSpring: 0
positionDamper: 0
maximumForce: 3.4028233e+38
useAcceleration: 0
m_ProjectionMode: 1
m_ProjectionDistance: 0
m_ProjectionAngle: 0
m_ConfiguredInWorldSpace: 0
m_SwapBodies: 0
m_BreakForce: Infinity
m_BreakTorque: Infinity
m_EnableCollision: 0
m_EnablePreprocessing: 1
m_MassScale: 1
m_ConnectedMassScale: 1
--- !u!114 &3177208381448634059
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9164964146144852783}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9b91ecbcc199f4492b9a91e820070131, type: 3}
m_Name:
m_EditorClassIdentifier:
sceneId: 0
_assetId: 12128331
serverOnly: 0
visibility: 0
hasSpawned: 0
--- !u!114 &7444349695939231439
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9164964146144852783}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d38927cdc6024b9682b5fe9778b9ef99, type: 3}
m_Name:
m_EditorClassIdentifier:
syncDirection: 0
syncMode: 0
syncInterval: 0
motionSmoothingVelocityThreshold: 0.1
motionSmoothingAngularVelocityThreshold: 0.1
motionSmoothingTimeTolerance: 0.5
stateHistoryLimit: 32
recordInterval: 0.05
onlyRecordChanges: 1
compareLastFirst: 1
positionCorrectionThreshold: 0.1
rotationCorrectionThreshold: 5
oneFrameAhead: 1
correctionMode: 1
snapThreshold: 2
showGhost: 1
ghostVelocityThreshold: 0.1
localGhostMaterial: {fileID: 2100000, guid: 411a48b4a197d4924bec3e3809bc9320, type: 2}
remoteGhostMaterial: {fileID: 2100000, guid: 04f0b2088c857414393bab3b80356776, type: 2}
positionInterpolationSpeed: 15
rotationInterpolationSpeed: 10
teleportDistanceMultiplier: 10
reduceSendsWhileIdle: 1
lineTime: 10

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 32ca4dc8d39a34994a8d8b3a5303613c
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -303,7 +303,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
muzzleFlash: {fileID: 7142436933463270085}
impactForce: 500
impactForce: 1000
--- !u!1 &8751592387390054513
GameObject:
m_ObjectHideFlags: 0

View File

@ -30833,6 +30833,7 @@ Transform:
- {fileID: 2007811548}
- {fileID: 709337653}
- {fileID: 713179768}
- {fileID: 1918529957739442805}
- {fileID: 313962992}
- {fileID: 1389493497}
- {fileID: 75536553}
@ -31161,7 +31162,6 @@ GameObject:
- component: {fileID: 1006358721}
- component: {fileID: 1006358720}
- component: {fileID: 1006358722}
- component: {fileID: 1006358723}
m_Layer: 0
m_Name: NetworkManager
m_TagString: Untagged
@ -31308,22 +31308,6 @@ MonoBehaviour:
jitterSpeed: 1
unreliableLoss: 2
unreliableScramble: 2
--- !u!114 &1006358723
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1006358716}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 39adc6e09d5544ed955a50ce8600355a, type: 3}
m_Name:
m_EditorClassIdentifier:
visRange: 30
rebuildInterval: 1
checkMethod: 0
showSlider: 0
--- !u!4 &1006717046 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 1682276144957132657, guid: a6b1450aa29ff4f6494e9ecded786c0c,
@ -67760,6 +67744,90 @@ PrefabInstance:
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 35ea067253fc44b74a6aea700cb9b055, type: 3}
--- !u!4 &1918529957739442805 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 1558678110355878795, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
m_PrefabInstance: {fileID: 4507036490500972557}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &4507036490500972557
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1002724298}
m_Modifications:
- target: {fileID: 1558678110355878795, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
propertyPath: m_RootOrder
value: 479
objectReference: {fileID: 0}
- target: {fileID: 1558678110355878795, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
propertyPath: m_LocalPosition.x
value: 97.17
objectReference: {fileID: 0}
- target: {fileID: 1558678110355878795, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
propertyPath: m_LocalPosition.y
value: 5.76
objectReference: {fileID: 0}
- target: {fileID: 1558678110355878795, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
propertyPath: m_LocalPosition.z
value: -23.26
objectReference: {fileID: 0}
- target: {fileID: 1558678110355878795, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1558678110355878795, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1558678110355878795, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1558678110355878795, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1558678110355878795, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1558678110355878795, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1558678110355878795, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3177208381448634059, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
propertyPath: sceneId
value: 3814597455
objectReference: {fileID: 0}
- target: {fileID: 9164964146144852783, guid: 32ca4dc8d39a34994a8d8b3a5303613c,
type: 3}
propertyPath: m_Name
value: JointTest
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 32ca4dc8d39a34994a8d8b3a5303613c, type: 3}
--- !u!1001 &4526381161973871806
PrefabInstance:
m_ObjectHideFlags: 0