working on fpp locomotion, camera spring

This commit is contained in:
2025-06-07 10:39:06 +02:00
parent 0abddece7e
commit e99314d5d8
40 changed files with 4112 additions and 462 deletions

View File

@@ -139,6 +139,57 @@ LineRenderer:
m_UseWorldSpace: 0
m_Loop: 0
m_ApplyActiveColorSpace: 1
--- !u!1 &2647022434574196008
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 9181414832138245197}
- component: {fileID: 2863764702303138330}
m_Layer: 0
m_Name: cam_spring
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &9181414832138245197
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2647022434574196008}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3547307509376589031}
m_Father: {fileID: 7761779135599839476}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2863764702303138330
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2647022434574196008}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f3305bd258b340d69d9b813f76dc5a01, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HalfLife: 0.075
m_Frequency: 12
m_ForwardAngularDisplacement: 3
m_SidewaysAngularDisplacement: 2
m_HeightAngularDisplacement: 4
m_LinearDisplacement: 0.1
--- !u!1 &6086846679135428685
GameObject:
m_ObjectHideFlags: 0
@@ -154,6 +205,7 @@ GameObject:
- component: {fileID: 3351589437949293952}
- component: {fileID: 3055557605397218987}
- component: {fileID: 447378847805683535}
- component: {fileID: 7994225944200444124}
m_Layer: 0
m_Name: a_player
m_TagString: Untagged
@@ -174,7 +226,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3547307509376589031}
- {fileID: 9181414832138245197}
- {fileID: 8215559081039065670}
- {fileID: 94470064633413912}
m_Father: {fileID: 0}
@@ -196,9 +248,10 @@ MonoBehaviour:
B: 1139302270
C: 1967136438
D: 3433895425
m_Animator: {fileID: 2658156910203414588}
m_Locomotion: {fileID: 3055557605397218987}
m_Camera: {fileID: 7282522638044830840}
m_Animator: {fileID: 2658156910203414588}
m_CameraSpring: {fileID: 2863764702303138330}
m_DragGutStartPosition: {fileID: 0}
m_PhysicsDragger: {fileID: 2402344678768307677}
m_DragDistanceRange:
@@ -280,21 +333,20 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: ee4e0741b71b4e0e81f8109748ea961d, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Rigidbody: {fileID: 3351589437949293952}
m_CapsuleCollider: {fileID: 447378847805683535}
m_GroundLayerMask:
serializedVersion: 2
m_Bits: 1
m_Motor: {fileID: 7994225944200444124}
runSpeed: 10
sprintSpeed: 20
groundAcceleration: 8
groundFriction: 7
jumpHeight: 3
inAirAcceleration: 1
gravity: 9.8
groundFriction: 9.91
airFriction: 1.5
jumpHeight: 2
jumpInputDuration: 0.2
coyoteDuration: 0.2
airControl: 0.15
gravity: 25
--- !u!136 &447378847805683535
CapsuleCollider:
m_ObjectHideFlags: 0
m_ObjectHideFlags: 8
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@@ -311,10 +363,52 @@ CapsuleCollider:
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.25
m_Height: 1.8
m_Radius: 0.5
m_Height: 2
m_Direction: 1
m_Center: {x: 0, y: 0.9, z: 0}
m_Center: {x: 0, y: 1, z: 0}
--- !u!114 &7994225944200444124
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6086846679135428685}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4d1bc5515e3ab954e80599c538834774, type: 3}
m_Name:
m_EditorClassIdentifier:
Capsule: {fileID: 447378847805683535}
CapsuleRadius: 0.5
CapsuleHeight: 2
CapsuleYOffset: 1
CapsulePhysicsMaterial: {fileID: 0}
GroundDetectionExtraDistance: 0
MaxStableSlopeAngle: 60
StableGroundLayers:
serializedVersion: 2
m_Bits: 4294967295
DiscreteCollisionEvents: 0
StepHandling: 1
MaxStepHeight: 0.5
AllowSteppingWithoutStableGrounding: 0
MinRequiredStepDepth: 0.1
LedgeAndDenivelationHandling: 1
MaxStableDistanceFromLedge: 0.5
MaxVelocityForLedgeSnap: 0
MaxStableDenivelationAngle: 180
InteractiveRigidbodyHandling: 1
RigidbodyInteractionType: 0
SimulatedCharacterMass: 1
PreserveAttachedRigidbodyMomentum: 1
HasPlanarConstraint: 0
PlanarConstraintAxis: {x: 0, y: 0, z: 1}
MaxMovementIterations: 5
MaxDecollisionIterations: 1
CheckMovementInitialOverlaps: 1
KillVelocityWhenExceedMaxMovementIterations: 1
KillRemainingMovementWhenExceedMaxMovementIterations: 1
--- !u!1 &7887986861182861129
GameObject:
m_ObjectHideFlags: 0
@@ -325,9 +419,8 @@ GameObject:
m_Component:
- component: {fileID: 3547307509376589031}
- component: {fileID: 8557190970217331903}
- component: {fileID: 3227912592152092828}
m_Layer: 0
m_Name: FPP Camera
m_Name: cc_fpp
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@@ -346,7 +439,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7761779135599839476}
m_Father: {fileID: 9181414832138245197}
m_LocalEulerAnglesHint: {x: 29.409, y: 180, z: 0}
--- !u!114 &8557190970217331903
MonoBehaviour:
@@ -391,21 +484,6 @@ MonoBehaviour:
BarrelClipping: 0.25
Anamorphism: 0
BlendHint: 0
--- !u!114 &3227912592152092828
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7887986861182861129}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 43e47286597d44b9bca21389d3909958, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Components: 1
m_Source: {fileID: 0}
m_UpdateLoop: 2
--- !u!1001 &8469368785544680877
PrefabInstance:
m_ObjectHideFlags: 0
@@ -454,6 +532,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -4571605982943762130, guid: 31a170ffc0fb03b4ca61567fae38e28f, type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: -4571605982943762130, guid: 31a170ffc0fb03b4ca61567fae38e28f, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
@@ -844,7 +926,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fff0960ef4ea6e04eac66b4a7fd2189d, type: 3}
m_Name:
m_EditorClassIdentifier:
m_RigLayers: []
m_RigLayers:
- m_Rig: {fileID: 0}
m_Active: 1
m_Effectors: []
--- !u!114 &1484787928313346834
MonoBehaviour: