Fixed Neck

Fixed the Player Controller Prefab
This commit is contained in:
juliuse98
2021-10-21 22:03:07 +02:00
parent 9f66155cd7
commit 18d90a2119
5 changed files with 186 additions and 35 deletions

View File

@@ -32,8 +32,8 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 2458562619286483438}
- {fileID: 6272346181657429396}
- {fileID: 6272346182417644039}
- {fileID: 223626088105882255}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@@ -49,7 +49,7 @@ CharacterController:
m_Enabled: 1
serializedVersion: 2
m_Height: 2
m_Radius: 0.5
m_Radius: 0.3
m_SlopeLimit: 45
m_StepOffset: 0.1
m_SkinWidth: 0.08
@@ -68,10 +68,16 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
playerCamera: {fileID: 6272346181657429396}
playerNeck: {fileID: 223626088105882255}
mouseSensitivity: 4
neckStartAngle: 0
maxCameraAngle: 90
minCameraAngle: -90
neckLength: 0.2
mouseSmoothTime: 0
lockCursor: 1
walkSpeed: 6
sprintSpeed: 10
moveSmoothTime: 0.05
gravity: -13
jumpHeight: 1
@@ -138,13 +144,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6272346181657429393}
m_LocalRotation: {x: -0, y: -0.67557263, z: -0, w: 0.7372934}
m_LocalPosition: {x: 0, y: 2, z: 0}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0.3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 6272346181302961296}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: -84.997, z: 0}
m_Father: {fileID: 223626088105882255}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!20 &6272346181657429395
Camera:
m_ObjectHideFlags: 0
@@ -224,6 +230,37 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 6272346181302961296}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &7697277603114630017
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 223626088105882255}
m_Layer: 0
m_Name: Neck
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &223626088105882255
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7697277603114630017}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1.8, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 6272346181657429396}
m_Father: {fileID: 6272346181302961296}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &8690889598169456425
@@ -274,7 +311,7 @@ MeshRenderer:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8690889598169456425}
m_Enabled: 1
m_Enabled: 0
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
@@ -318,7 +355,7 @@ CapsuleCollider:
m_GameObject: {fileID: 8690889598169456425}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
m_Enabled: 0
m_Radius: 0.5
m_Height: 2
m_Direction: 1