浮漂脚本

This commit is contained in:
2026-03-22 22:34:05 +08:00
parent 685cfbc809
commit 67c4bc0347
2 changed files with 330 additions and 71 deletions

View File

@@ -493,7 +493,7 @@ GameObject:
- component: {fileID: 54298866000586118}
- component: {fileID: 153691655494134957}
- component: {fileID: 2717383850592950062}
- component: {fileID: 4574796762267659512}
- component: {fileID: 6678694395924494533}
m_Layer: 16
m_Name: Float
m_TagString: Untagged
@@ -659,7 +659,7 @@ MonoBehaviour:
m_EditorClassIdentifier: Assembly-CSharp::NBF.BobberController
_rbody: {fileID: 54298866000586118}
joint: {fileID: 153691655494134957}
--- !u!114 &4574796762267659512
--- !u!114 &6678694395924494533
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@@ -687,14 +687,24 @@ MonoBehaviour:
lockXZAroundAnchor: 1
xzSmoothTime: 0.15
maxPlanarOffset: 0.15
keepUpright: 1
rotationLerpSpeed: 8
maxTiltAngle: 18
planarTiltFactor: 120
downForceToSink: 0.0025
maxExtraSink: 0.08
enableBottomTouchAdjust: 1
bottomTouchLift: 0.01
lureBody: {fileID: 54679398375713381}
referenceLength: 0.3
minSubmergeToStand: 0.16
verticalLieThreshold: 0.18
verticalUprightThreshold: 0.75
planarTiltThreshold: 0.3
planarDominanceMultiplier: 1.2
postureHysteresis: 0.04
tiltedAngle: 38
lyingAngle: 88
uprightMaxTiltAngle: 8
planarTiltFactor: 120
rotationLerpSpeed: 8
debugResetKey: 1
debugTapKey: 1
debugSlowSinkKey: 1
debugLiftKey: 1