From bc88f713793b077b0f14b431185385a8f0386076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alptu=C4=9F=20C=C4=B1r=C4=B1t?= Date: Wed, 18 Sep 2024 13:27:09 +0300 Subject: [PATCH] add camera controller to ss2 scene MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alptuğ Cırıt --- .../AutowareSimulationScenarioSimulator.unity | 374 +++++++++++++++++- 1 file changed, 366 insertions(+), 8 deletions(-) diff --git a/Assets/AWSIM/Scenes/Main/AutowareSimulationScenarioSimulator.unity b/Assets/AWSIM/Scenes/Main/AutowareSimulationScenarioSimulator.unity index 2c1109cfd0..1e290c7427 100644 --- a/Assets/AWSIM/Scenes/Main/AutowareSimulationScenarioSimulator.unity +++ b/Assets/AWSIM/Scenes/Main/AutowareSimulationScenarioSimulator.unity @@ -675,8 +675,6 @@ MonoBehaviour: m_EditorClassIdentifier: _cardTopBarButton: {fileID: 1163896667} _barChevronRect: {fileID: 433002055} - _chevronExpandedDegrees: 90 - _chevronCollapsedDegrees: 0 _isCardOpen: 1 ElementHeight: 30 ElementSpacing: 5 @@ -2462,8 +2460,6 @@ MonoBehaviour: m_EditorClassIdentifier: _cardTopBarButton: {fileID: 1166975114} _barChevronRect: {fileID: 748273832} - _chevronExpandedDegrees: 90 - _chevronCollapsedDegrees: 0 _isCardOpen: 1 ElementHeight: 30 ElementSpacing: 5 @@ -2605,6 +2601,221 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 381177579} m_CullTransparentMesh: 1 +--- !u!1 &398831873 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 398831874} + - component: {fileID: 398831881} + - component: {fileID: 398831880} + - component: {fileID: 398831879} + - component: {fileID: 398831878} + - component: {fileID: 398831877} + - component: {fileID: 398831876} + - component: {fileID: 398831875} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &398831874 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 398831873} + 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: [] + m_Father: {fileID: 644231228} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1542919678 &398831875 +StreamingController: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 398831873} + m_Enabled: 1 + m_StreamingMipmapBias: 1 +--- !u!114 &398831876 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 398831873} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 172515602e62fb746b5d573b38a5fe58, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IsGlobal: 0 + priority: 2 + blendDistance: 0 + weight: 0.7 + sharedProfile: {fileID: 11400000, guid: 5a38341ed3c2637fbbc507134841f2ae, type: 2} +--- !u!65 &398831877 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 398831873} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 1 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 0.5, y: 0.5, z: 0.5} + m_Center: {x: 0, y: 0, z: 0} +--- !u!114 &398831878 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 398831873} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_RenderShadows: 1 + m_RequiresDepthTextureOption: 0 + m_RequiresOpaqueTextureOption: 0 + m_CameraType: 0 + m_Cameras: [] + m_RendererIndex: -1 + m_VolumeLayerMask: + serializedVersion: 2 + m_Bits: 1 + m_VolumeTrigger: {fileID: 0} + m_VolumeFrameworkUpdateModeOption: 2 + m_RenderPostProcessing: 1 + m_Antialiasing: 0 + m_AntialiasingQuality: 2 + m_StopNaN: 0 + m_Dithering: 0 + m_ClearDepth: 1 + m_AllowXRRendering: 1 + m_AllowHDROutput: 1 + m_UseScreenCoordOverride: 0 + m_ScreenSizeOverride: {x: 0, y: 0, z: 0, w: 0} + m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0} + m_RequiresDepthTexture: 0 + m_RequiresColorTexture: 0 + m_Version: 2 + m_TaaSettings: + m_Quality: 3 + m_FrameInfluence: 0.1 + m_JitterScale: 1 + m_MipBias: 0 + m_VarianceClampScale: 0.9 + m_ContrastAdaptiveSharpening: 0 +--- !u!114 &398831879 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 398831873} + m_Enabled: 0 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 555e395f453a79e44b909d2fd10efc05, type: 3} + m_Name: + m_EditorClassIdentifier: + target: {fileID: 0} + Distance: 5.48 + Offset: 0 + Height: 2.82 + HeightMultiplier: 0.5 + RotateAroundModeToggle: 99 + RotateAroundSensitivity: 16 + HeightAdjustmentSensitivity: 1 + ZoomSensitivity: 200 + InvertHorzAxis: 0 + InvertVertAxis: 0 + InvertScrollWheel: 0 + MaxHeight: 10 + MinDistance: 1 + MaxDistance: 20 +--- !u!81 &398831880 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 398831873} + m_Enabled: 1 +--- !u!20 &398831881 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 398831873} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0, g: 0, b: 0, a: 1} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_Iso: 200 + m_ShutterSpeed: 0.005 + m_Aperture: 16 + m_FocusDistance: 10 + m_FocalLength: 50 + m_BladeCount: 5 + m_Curvature: {x: 2, y: 11} + m_BarrelClipping: 0.25 + m_Anamorphism: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.01 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 --- !u!1 &404773048 GameObject: m_ObjectHideFlags: 0 @@ -3824,6 +4035,156 @@ MonoBehaviour: m_StringArgument: m_BoolArgument: 0 m_CallState: 2 +--- !u!1 &644231226 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 644231228} + - component: {fileID: 644231227} + m_Layer: 0 + m_Name: Camera Controller + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &644231227 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 644231226} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1403093141, guid: b8873f7cd5fec6f49a4b37228b9b23ac, type: 3} + m_Name: + m_EditorClassIdentifier: + mode: 1 + target: {fileID: 0} + changeCameraKey: 99 + customCameraIndex: 0 + timeMode: 1 + driverCameraFov: 75 + driver: + hotKey: 282 + attachTarget: {fileID: 0} + enableRotation: 0 + resetRotationOnEnable: 0 + requireKeyPressedToRotate: 0 + keyToRequire: 324 + lookAtTarget: {fileID: 0} + horizontal: + angle: 0 + mode: 1 + targetOffset: 0 + damped: 1 + damping: 4 + clamped: 1 + minAngle: -90 + maxAngle: 90 + vertical: + angle: 0 + mode: 1 + targetOffset: 0 + damped: 1 + damping: 4 + clamped: 1 + minAngle: -60 + maxAngle: 60 + horizontalAxis: Mouse X + verticalAxis: Mouse Y + horizontalSensitivity: 4 + verticalSensitivity: 4 + smoothFollow: + hotKey: 283 + distance: 10 + height: 3.5 + heightMultiplier: 1 + heightDamping: 4.25 + rotationDamping: 3 + followVelocity: 1 + velocityDamping: 5 + orbit: + hotKey: 284 + distance: 14 + minVerticalAngle: 1.8 + maxVerticalAngle: 70 + horizontalSpeed: 5 + verticalSpeed: 2.5 + orbitDamping: 4 + minDistance: 3.8 + maxDistance: 50 + distanceSpeed: 10 + distanceDamping: 4 + requireKeyPressed: 0 + requiredKey: 324 + horizontalAxis: Mouse X + verticalAxis: Mouse Y + distanceAxis: Mouse ScrollWheel + lookAt: + hotKey: 285 + damping: 8 + adjustFov: 1 + minFov: 1 + maxFov: 60 + fovSpeed: 20 + fovDamping: 4 + autoFov: 1 + targetRadius: 5 + targetRadiusSpeed: 5 + adjustNearPlane: 0 + nearPlaneAtMinFov: 1.5 + fovAxis: Mouse ScrollWheel + enableMovement: 0 + movementSpeed: 10 + movementDamping: 5 + forwardAxis: Forwards + sidewaysAxis: Sideways + upwardsAxis: Upwards + free: + hotKey: 0 + minVerticalAngle: -60 + maxVerticalAngle: 60 + horizontalSpeed: 4 + verticalSpeed: 2 + damping: 4 + adjustFov: 1 + minFov: 10 + maxFov: 60 + fovSpeed: 20 + fovDamping: 4 + adjustNearPlane: 0 + nearPlaneAtMinFov: 1.5 + horizontalAxis: Mouse X + verticalAxis: Mouse Y + fovAxis: Mouse ScrollWheel + enableMovement: 0 + movementSpeed: 2 + movementDamping: 5 + forwardAxis: Forwards + sidewaysAxis: Sideways + upwardsAxis: Upwards +--- !u!4 &644231228 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 644231226} + serializedVersion: 2 + m_LocalRotation: {x: 0.22057624, y: -0.27639782, z: 0.06533767, w: 0.93310314} + m_LocalPosition: {x: 231.1, y: 5.9, z: -288.9} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 398831874} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 26.6, y: -33, z: 0} --- !u!1 &645900690 GameObject: m_ObjectHideFlags: 0 @@ -11269,8 +11630,6 @@ MonoBehaviour: m_EditorClassIdentifier: _cardTopBarButton: {fileID: 945937805} _barChevronRect: {fileID: 937256051} - _chevronExpandedDegrees: 90 - _chevronCollapsedDegrees: 0 _isCardOpen: 1 ElementHeight: 30 ElementSpacing: 5 @@ -13108,8 +13467,6 @@ MonoBehaviour: m_EditorClassIdentifier: _cardTopBarButton: {fileID: 125729208} _barChevronRect: {fileID: 1691689800} - _chevronExpandedDegrees: 90 - _chevronCollapsedDegrees: 0 _isCardOpen: 1 ElementHeight: 30 ElementSpacing: 5 @@ -13761,3 +14118,4 @@ SceneRoots: - {fileID: 2049855939} - {fileID: 735419280} - {fileID: 992040948} + - {fileID: 644231228}