完成线的制作

This commit is contained in:
2026-01-23 23:03:14 +08:00
parent 20f14322bc
commit d60b255a64
15 changed files with 440 additions and 102 deletions

View File

@@ -26,7 +26,7 @@ RenderSettings:
m_AmbientIntensity: 0.8050667
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.8679245, g: 0.8679245, b: 0.8679245, a: 1}
m_SkyboxMaterial: {fileID: 1849940596}
m_SkyboxMaterial: {fileID: 2001368536}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
@@ -1445,7 +1445,7 @@ MonoBehaviour:
_MaximumSpeed: 100
_WarnOnSpeedClamp: 0
_DebugSubsteps: 0
--- !u!21 &1849940596
--- !u!21 &2001368536
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
@@ -8617,8 +8617,7 @@ MonoBehaviour:
WaterObject: {fileID: 718680767}
Node: {fileID: 3673832994973231279}
GearNode: {fileID: 6022323663597824692}
Water: {fileID: 0}
obiFixedUpdater: {fileID: 0}
Water: {fileID: 718680768}
LineRenderer: {fileID: 0}
FPS: 0
updateInterval: 0.2
@@ -9766,9 +9765,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 434d88f9b3534406382ff56c0e74bd9a, type: 3}
m_Name:
m_EditorClassIdentifier: Obi::Obi.ObiLateUpdater
solvers: []
deltaSmoothing: 0.95
substeps: 4
--- !u!1 &8631023225256132614
GameObject:
m_ObjectHideFlags: 0

View File

@@ -10,7 +10,6 @@ GameObject:
m_Component:
- component: {fileID: 744750288977666519}
- component: {fileID: 6985090007750348232}
- component: {fileID: 6445827893924548657}
m_Layer: 0
m_Name: LineSolver
m_TagString: Untagged
@@ -47,23 +46,57 @@ MonoBehaviour:
m_EditorClassIdentifier: Obi::Obi.ObiSolver
simulateWhenInvisible: 1
m_Backend: 1
substeps: 4
maxStepsPerFrame: 1
synchronization: 1
parameters:
mode: 0
interpolation: 0
gravity: {x: 0, y: -9.81, z: 0}
ambientWind: {x: 0, y: 0, z: 0}
foamGravityScale: 1
damping: 0.997
maxAnisotropy: 1
sleepThreshold: 0.005
maxVelocity: 50
maxAngularVelocity: 20
collisionMargin: 0.02
maxDepenetration: 10
continuousCollisionDetection: 1
colliderCCD: 1
particleCCD: 0
shockPropagation: 0
surfaceCollisionIterations: 1
surfaceCollisionTolerance: 0.005
diffusionMask: {x: 1, y: 1, z: 1, w: 1}
m_MaxSurfaceChunks: 32768
maxQueryResults: 8192
maxFoamParticles: 8192
maxParticleNeighbors: 128
maxParticleContacts: 6
useLimits: 0
killOffLimitsParticles: 0
boundaryLimits:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 5, y: 5, z: 5}
gravity: {x: 0, y: -6.06, z: 0}
gravitySpace: 1
ambientWind: {x: 0, y: 0, z: 0}
windSpace: 1
foamSubsteps: 1
foamMinNeighbors: 3
foamCollisions: 0
maxFoamVelocityStretch: 0.3
foamRadiusScale: 1
foamFade: {x: 0.05, y: 0.8}
foamAccelAgingRange: {x: 0.5, y: 0.8}
foamAccelAging: 4
foamVolumeDensity: 0.1
foamAmbientDensity: 0.02
foamScatterColor: {r: 0.8, g: 0.75, b: 0.7, a: 1}
foamAmbientColor: {r: 0.4, g: 0.5, b: 0.6, a: 1}
worldLinearInertiaScale: 0
worldAngularInertiaScale: 0
synchronousSpatialQueries: 0
distanceConstraintParameters:
evaluationOrder: 0
iterations: 1
@@ -119,6 +152,11 @@ MonoBehaviour:
iterations: 1
SORFactor: 1
enabled: 1
pinholeConstraintParameters:
evaluationOrder: 1
iterations: 1
SORFactor: 1
enabled: 1
stitchConstraintParameters:
evaluationOrder: 1
iterations: 1
@@ -144,18 +182,3 @@ MonoBehaviour:
iterations: 1
SORFactor: 1
enabled: 0
--- !u!114 &6445827893924548657
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3385956386580495472}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1d9704d540ac448439a425526f6b2986, type: 3}
m_Name:
m_EditorClassIdentifier: Obi::Obi.ObiFixedUpdater
solvers:
- {fileID: 6985090007750348232}
substeps: 4

View File

@@ -53,9 +53,13 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 61104f33a3f344db9b7e0d0cda41a9fb, type: 3}
m_Name:
m_EditorClassIdentifier:
solverIndices:
solverIndices:
serializedContents:
m_AlignBytes: 16
groupID: 0
m_CollisionMaterial: {fileID: 0}
m_SurfaceCollisions: 0
m_MassScale: 1
m_SelfCollisions: 0
restLength_: 0.5
elements:
@@ -164,6 +168,9 @@ MonoBehaviour:
restLength: 0.023315966
constraintForce: 0
tearResistance: 1
_aerodynamicsEnabled: 1
_drag: 0.05
_lift: 0.02
m_RopeBlueprint: {fileID: 11400000, guid: a41193e381908de44b097f1f57b43028, type: 2}
tearingEnabled: 0
tearResistanceMultiplier: 1000
@@ -173,9 +180,9 @@ MonoBehaviour:
_stretchCompliance: 0
_maxCompression: 0
_bendConstraintsEnabled: 1
_bendCompliance: 0.5
_maxBending: 0.5
_plasticYield: 0.1
_bendCompliance: 0
_maxBending: 0.05
_plasticYield: 0
_plasticCreep: 0
--- !u!23 &23649574223012002
MeshRenderer:
@@ -245,9 +252,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 958c969cfb16745f192d4d7bd28b7178, type: 3}
m_Name:
m_EditorClassIdentifier:
decimation: 0
decimation: 0.15
smoothing: 3
twist: 25
indexInSystem: 0
--- !u!114 &114148468497635697
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -260,6 +268,15 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c4747da60837c44f9ba4b4a86879bcc8, type: 3}
m_Name:
m_EditorClassIdentifier:
material: {fileID: 0}
renderParameters:
layer: 0
lightProbeUsage: 1
reflectionProbeUsage: 1
shadowCastingMode: 1
receiveShadows: 1
motionVectors: 0
renderingLayerMask: 4294967295
uvAnchor: 0
uvScale: {x: 1, y: 1}
normalizeV: 1
@@ -282,8 +299,9 @@ MonoBehaviour:
m_ParticleGroup: {fileID: -5395693579433732326, guid: a41193e381908de44b097f1f57b43028, type: 2}
m_AttachmentType: 0
m_ConstrainOrientation: 0
m_Projection: 0
m_Compliance: 0
m_BreakThreshold: Infinity
breakThreshold: Infinity
--- !u!114 &114172005767509640
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -301,8 +319,9 @@ MonoBehaviour:
m_ParticleGroup: {fileID: -2515171973132415257, guid: a41193e381908de44b097f1f57b43028, type: 2}
m_AttachmentType: 0
m_ConstrainOrientation: 0
m_Projection: 0
m_Compliance: 0
m_BreakThreshold: Infinity
breakThreshold: Infinity
--- !u!114 &114941649757569269
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -346,10 +365,17 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c8b45ebbf86be4df6b0e6cd933812af2, type: 3}
m_Name:
m_EditorClassIdentifier: Obi::Obi.ObiParticleRenderer
render: 1
shader: {fileID: 4800000, guid: 801733041f66b49e1b3c2101471db877, type: 3}
particleColor: {r: 1, g: 1, b: 1, a: 1}
radiusScale: 1
material: {fileID: 0}
renderParameters:
layer: 0
lightProbeUsage: 1
reflectionProbeUsage: 1
shadowCastingMode: 1
receiveShadows: 1
motionVectors: 0
renderingLayerMask: 4294967295
<particleColor>k__BackingField: {r: 1, g: 1, b: 1, a: 1}
<radiusScale>k__BackingField: 1
--- !u!1 &1035052809208993
GameObject:
m_ObjectHideFlags: 0
@@ -836,9 +862,13 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 61104f33a3f344db9b7e0d0cda41a9fb, type: 3}
m_Name:
m_EditorClassIdentifier:
solverIndices:
solverIndices:
serializedContents:
m_AlignBytes: 16
groupID: 0
m_CollisionMaterial: {fileID: 0}
m_SurfaceCollisions: 0
m_MassScale: 1
m_SelfCollisions: 0
restLength_: 0.5
elements:
@@ -1087,6 +1117,9 @@ MonoBehaviour:
restLength: 0.02000001
constraintForce: 0
tearResistance: 1
_aerodynamicsEnabled: 1
_drag: 0.05
_lift: 0.02
m_RopeBlueprint: {fileID: 11400000, guid: a41193e381908de44b097f1f57b43028, type: 2}
tearingEnabled: 0
tearResistanceMultiplier: 1000
@@ -1096,9 +1129,9 @@ MonoBehaviour:
_stretchCompliance: 0
_maxCompression: 0
_bendConstraintsEnabled: 1
_bendCompliance: 0.5
_maxBending: 0.5
_plasticYield: 0.1
_bendCompliance: 0
_maxBending: 0.05
_plasticYield: 0
_plasticCreep: 0
--- !u!23 &23047835326758575
MeshRenderer:
@@ -1168,9 +1201,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 958c969cfb16745f192d4d7bd28b7178, type: 3}
m_Name:
m_EditorClassIdentifier:
decimation: 0
smoothing: 0
twist: 0
decimation: 0.1
smoothing: 3
twist: 25
indexInSystem: 0
--- !u!114 &114972033155067211
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -1178,11 +1212,20 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1933124697579601}
m_Enabled: 0
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c4747da60837c44f9ba4b4a86879bcc8, type: 3}
m_Name:
m_EditorClassIdentifier:
material: {fileID: 0}
renderParameters:
layer: 0
lightProbeUsage: 1
reflectionProbeUsage: 1
shadowCastingMode: 1
receiveShadows: 1
motionVectors: 0
renderingLayerMask: 4294967295
uvAnchor: 0
uvScale: {x: 1, y: 1}
normalizeV: 1
@@ -1205,8 +1248,9 @@ MonoBehaviour:
m_ParticleGroup: {fileID: -5395693579433732326, guid: a41193e381908de44b097f1f57b43028, type: 2}
m_AttachmentType: 0
m_ConstrainOrientation: 0
m_Projection: 0
m_Compliance: 0
m_BreakThreshold: Infinity
breakThreshold: Infinity
--- !u!114 &114623075352630189
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -1224,8 +1268,9 @@ MonoBehaviour:
m_ParticleGroup: {fileID: -2515171973132415257, guid: a41193e381908de44b097f1f57b43028, type: 2}
m_AttachmentType: 0
m_ConstrainOrientation: 0
m_Projection: 0
m_Compliance: 0
m_BreakThreshold: Infinity
breakThreshold: Infinity
--- !u!114 &114422070939195681
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -1269,10 +1314,17 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c8b45ebbf86be4df6b0e6cd933812af2, type: 3}
m_Name:
m_EditorClassIdentifier: Obi::Obi.ObiParticleRenderer
render: 1
shader: {fileID: 4800000, guid: 801733041f66b49e1b3c2101471db877, type: 3}
particleColor: {r: 1, g: 1, b: 1, a: 1}
radiusScale: 1
material: {fileID: 0}
renderParameters:
layer: 0
lightProbeUsage: 1
reflectionProbeUsage: 1
shadowCastingMode: 1
receiveShadows: 1
motionVectors: 0
renderingLayerMask: 4294967295
<particleColor>k__BackingField: {r: 1, g: 1, b: 1, a: 1}
<radiusScale>k__BackingField: 1
--- !u!1 &1943073364215513
GameObject:
m_ObjectHideFlags: 0