Smooth free-camera flight and look
FreeCamController: ease movement via dt-correct Vector3.SmoothDamp on a world-space velocity (accel/decel ramp) and lag the look with Mathf.SmoothDampAngle. Both are framerate-independent and collapse to instant at smoothTime 0; smoothed state is snapped on activation (SyncToCurrentView) so entering freecam never jumps to catch up. Bundles accumulated deferred work: PlayerScaler uniform-scale helper, scale-aware wall/ceiling climb probes and the double-scale skinned-collider bake fix, plus user content authoring (Sit pose + animation, font SDF, scene/prefab edits). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
f66ebbf10a
commit
8c89e95014
14 files changed
+12083
-360
No files matched your search
@@ -579,9 +579,9 @@ MonoBehaviour:
|
||||
invertY: 0
|
||||
rotationSmoothing: 20
|
||||
enableZoom: 1
|
||||
zoomSpeed: 0.5
|
||||
zoomSpeed: 0.25
|
||||
zoomSmoothing: 10
|
||||
minRadius: 1.5
|
||||
minRadius: 0.5
|
||||
maxRadius: 8
|
||||
manageCursor: 1
|
||||
--- !u!114 &172071432
|
||||
@@ -767,7 +767,7 @@ Transform:
|
||||
m_GameObject: {fileID: 172071430}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0.1305262, y: 2.1996925e-11, z: -4.1198815e-12, w: 0.9914449}
|
||||
m_LocalPosition: {x: 0, y: 1.9146858, z: -4.3466663}
|
||||
m_LocalPosition: {x: 0, y: 1.5396858, z: -4.3466663}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
@@ -1480,7 +1480,7 @@ Transform:
|
||||
m_GameObject: {fileID: 330585543}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0.1305262, y: 2.1832952e-11, z: -2.8743629e-12, w: 0.9914449}
|
||||
m_LocalPosition: {x: 0, y: 1.9146858, z: -4.3466663}
|
||||
m_LocalPosition: {x: 0, y: 1.5396858, z: -4.3466663}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
@@ -4917,10 +4917,10 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 5ca7cff7542b53b498f0a9834786b9e0, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::FreeCamController
|
||||
moveSpeed: 6
|
||||
sprintMultiplier: 3
|
||||
moveSpeed: 4
|
||||
sprintMultiplier: 2
|
||||
horizontalSensitivity: 0.1
|
||||
verticalSensitivity: 0.07
|
||||
verticalSensitivity: 0.075
|
||||
invertY: 0
|
||||
maxPitch: 89
|
||||
activePriority: 100
|
||||
@@ -4943,13 +4943,13 @@ CharacterController:
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Height: 1.3
|
||||
m_Height: 0.21
|
||||
m_Radius: 0.1
|
||||
m_SlopeLimit: 59
|
||||
m_StepOffset: 0.15
|
||||
m_StepOffset: 0.1
|
||||
m_SkinWidth: 0.01
|
||||
m_MinMoveDistance: 0.001
|
||||
m_Center: {x: 0, y: -0.09, z: 0}
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1282734306
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -7684,10 +7684,50 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 273411532115212066, guid: 97017ed3bb40aff4e885440d9a7336ee, type: 3}
|
||||
propertyPath: scale
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1514890176713383521, guid: 97017ed3bb40aff4e885440d9a7336ee, type: 3}
|
||||
propertyPath: m_Enabled
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4587432968399885263, guid: 97017ed3bb40aff4e885440d9a7336ee, type: 3}
|
||||
propertyPath: poses.Array.size
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4587432968399885263, guid: 97017ed3bb40aff4e885440d9a7336ee, type: 3}
|
||||
propertyPath: 'poses.Array.data[2]'
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: 90df501d86681394b834f647f6f4e939, type: 2}
|
||||
- target: {fileID: 4587432968399885263, guid: 97017ed3bb40aff4e885440d9a7336ee, type: 3}
|
||||
propertyPath: 'poses.Array.data[3]'
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: c5cf9d420554e5e4e96d3bee1903967a, type: 2}
|
||||
- target: {fileID: 4587432968399885263, guid: 97017ed3bb40aff4e885440d9a7336ee, type: 3}
|
||||
propertyPath: 'poses.Array.data[4]'
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: 1545cfba9b5e06d41ae72c7ec766baaf, type: 2}
|
||||
- target: {fileID: 5280718916654756701, guid: 97017ed3bb40aff4e885440d9a7336ee, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5384024074013944205, guid: 97017ed3bb40aff4e885440d9a7336ee, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Player
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6997860362608943113, guid: 97017ed3bb40aff4e885440d9a7336ee, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6997860362608943113, guid: 97017ed3bb40aff4e885440d9a7336ee, type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6997860362608943113, guid: 97017ed3bb40aff4e885440d9a7336ee, type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6997860362608943113, guid: 97017ed3bb40aff4e885440d9a7336ee, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
@@ -7741,6 +7781,7 @@ SceneRoots:
|
||||
- {fileID: 2009475134}
|
||||
- {fileID: 330585546}
|
||||
- {fileID: 172071436}
|
||||
- {fileID: 1282734307}
|
||||
- {fileID: 832575519}
|
||||
- {fileID: 410087041}
|
||||
- {fileID: 2025317892}
|
||||
@@ -7748,4 +7789,3 @@ SceneRoots:
|
||||
- {fileID: 686187287}
|
||||
- {fileID: 489277934}
|
||||
- {fileID: 347639557}
|
||||
- {fileID: 1282734307}
|
||||
Reference in new issue
Block a user