From d48cc44e204de24933391510d4c8bb7e254a64f5 Mon Sep 17 00:00:00 2001 From: Samrendra Roy <67054877+roysamren@users.noreply.github.com> Date: Mon, 29 May 2023 22:44:24 -0500 Subject: [PATCH] added a physics behavi --- Project/Assets/XR/droping a ball.cs | 18 +++ Project/Assets/XR/droping a ball.cs.meta | 11 ++ .../UserSettings/Layouts/default-2021.dwlt | 138 +++++++++--------- 3 files changed, 98 insertions(+), 69 deletions(-) create mode 100644 Project/Assets/XR/droping a ball.cs create mode 100644 Project/Assets/XR/droping a ball.cs.meta diff --git a/Project/Assets/XR/droping a ball.cs b/Project/Assets/XR/droping a ball.cs new file mode 100644 index 00000000..fae71a00 --- /dev/null +++ b/Project/Assets/XR/droping a ball.cs @@ -0,0 +1,18 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class dropingaball : MonoBehaviour +{ + // Start is called before the first frame update + void Start() + { + + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/Project/Assets/XR/droping a ball.cs.meta b/Project/Assets/XR/droping a ball.cs.meta new file mode 100644 index 00000000..ad44769d --- /dev/null +++ b/Project/Assets/XR/droping a ball.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 261c96579e3d1644cabc5d8744dd802c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Project/UserSettings/Layouts/default-2021.dwlt b/Project/UserSettings/Layouts/default-2021.dwlt index d91db6e9..0ae41a1e 100644 --- a/Project/UserSettings/Layouts/default-2021.dwlt +++ b/Project/UserSettings/Layouts/default-2021.dwlt @@ -14,16 +14,16 @@ MonoBehaviour: m_EditorClassIdentifier: m_PixelRect: serializedVersion: 2 - x: 0 - y: 43.2 - width: 1536 + x: 7.2000003 + y: 50.4 + width: 1521.6 height: 780.8 m_ShowMode: 4 - m_Title: Game + m_Title: Project m_RootView: {fileID: 6} m_MinSize: {x: 875, y: 300} m_MaxSize: {x: 10000, y: 10000} - m_Maximized: 1 + m_Maximized: 0 --- !u!114 &2 MonoBehaviour: m_ObjectHideFlags: 52 @@ -43,12 +43,12 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 30 - width: 1536 + width: 1521.6 height: 730.8 m_MinSize: {x: 300, y: 200} m_MaxSize: {x: 24288, y: 16192} vertical: 0 - controlID: 75 + controlID: 22 --- !u!114 &3 MonoBehaviour: m_ObjectHideFlags: 52 @@ -64,12 +64,12 @@ MonoBehaviour: m_Children: [] m_Position: serializedVersion: 2 - x: 1435.2 + x: 1421.6 y: 0 - width: 100.80005 + width: 100 height: 730.8 - m_MinSize: {x: 275, y: 50} - m_MaxSize: {x: 4000, y: 4000} + m_MinSize: {x: 276, y: 71} + m_MaxSize: {x: 4001, y: 4021} m_ActualView: {fileID: 13} m_Panes: - {fileID: 13} @@ -92,8 +92,8 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 0 - width: 277.6 - height: 630.4 + width: 275.2 + height: 599.2 m_MinSize: {x: 201, y: 221} m_MaxSize: {x: 4001, y: 4021} m_ActualView: {fileID: 14} @@ -117,9 +117,9 @@ MonoBehaviour: m_Position: serializedVersion: 2 x: 0 - y: 630.4 - width: 1435.2 - height: 100.39996 + y: 599.2 + width: 1421.6 + height: 131.59998 m_MinSize: {x: 231, y: 271} m_MaxSize: {x: 10001, y: 10021} m_ActualView: {fileID: 12} @@ -148,7 +148,7 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 0 - width: 1536 + width: 1521.6 height: 780.8 m_MinSize: {x: 875, y: 300} m_MaxSize: {x: 10000, y: 10000} @@ -173,7 +173,7 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 0 - width: 1536 + width: 1521.6 height: 30 m_MinSize: {x: 0, y: 0} m_MaxSize: {x: 0, y: 0} @@ -195,7 +195,7 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 760.8 - width: 1536 + width: 1521.6 height: 20 m_MinSize: {x: 0, y: 0} m_MaxSize: {x: 0, y: 0} @@ -218,12 +218,12 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 0 - width: 1435.2 + width: 1421.6 height: 730.8 m_MinSize: {x: 200, y: 200} m_MaxSize: {x: 16192, y: 16192} vertical: 1 - controlID: 76 + controlID: 23 --- !u!114 &10 MonoBehaviour: m_ObjectHideFlags: 52 @@ -243,12 +243,12 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 0 - width: 1435.2 - height: 630.4 + width: 1421.6 + height: 599.2 m_MinSize: {x: 200, y: 100} m_MaxSize: {x: 16192, y: 8096} vertical: 0 - controlID: 58 + controlID: 24 --- !u!114 &11 MonoBehaviour: m_ObjectHideFlags: 52 @@ -264,10 +264,10 @@ MonoBehaviour: m_Children: [] m_Position: serializedVersion: 2 - x: 277.6 + x: 275.2 y: 0 - width: 1157.6 - height: 630.4 + width: 1146.3999 + height: 599.2 m_MinSize: {x: 202, y: 221} m_MaxSize: {x: 4002, y: 4021} m_ActualView: {fileID: 15} @@ -297,10 +297,10 @@ MonoBehaviour: m_Tooltip: m_Pos: serializedVersion: 2 - x: 0 - y: 704 - width: 1434.2 - height: 79.39996 + x: 7.2000003 + y: 680 + width: 1420.6 + height: 110.599976 m_ViewDataDictionary: {fileID: 0} m_OverlayCanvas: m_LastAppliedPresetName: Default @@ -318,22 +318,22 @@ MonoBehaviour: m_SkipHidden: 0 m_SearchArea: 1 m_Folders: - - Assets + - Assets/XR m_Globs: [] m_OriginalText: m_ViewMode: 1 m_StartGridSize: 64 m_LastFolders: - - Assets + - Assets/XR m_LastFoldersGridSize: -1 - m_LastProjectPath: C:\Users\roysamren\Downloads\Project-OPENXR\Project + m_LastProjectPath: D:\Intern 2023\Test repo\unity-test\Project m_LockTracker: m_IsLocked: 0 m_FolderTreeState: scrollPos: {x: 0, y: 79} - m_SelectedIDs: d2e00000 - m_LastClickedID: 57554 - m_ExpandedIDs: 00000000d2e00000d4e00000d6e00000d8e00000dae00000dce00000dee00000e0e00000e2e00000e4e00000e6e00000e8e00000eae00000ece00000eee00000f0e00000f2e00000f4e00000f6e00000f8e00000fae00000fce00000fee0000000e1000000ca9a3b + m_SelectedIDs: 7ce80000 + m_LastClickedID: 59516 + m_ExpandedIDs: 000000005ae700005ce700005ee7000060e7000062e7000064e7000066e7000068e700006ae700006ce700006ee7000070e7000072e7000074e7000076e7000078e700007ae700007ce700007ee7000080e7000082e7000084e7000086e7000088e700008ae700008ce700008ee7000090e7000000ca9a3bffffff7f m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -361,7 +361,7 @@ MonoBehaviour: scrollPos: {x: 0, y: 0} m_SelectedIDs: m_LastClickedID: 0 - m_ExpandedIDs: 00000000d2e00000d4e00000d6e00000d8e00000dae00000dce00000dee00000e0e00000e2e00000e4e00000e6e00000e8e00000eae00000ece00000eee00000f0e00000f2e00000f4e00000f6e00000f8e00000fae00000fce00000fee0000000e10000 + m_ExpandedIDs: 000000005ae700005ce700005ee7000060e7000062e7000064e7000066e7000068e700006ae700006ce700006ee7000070e7000072e7000074e7000076e7000078e700007ae700007ce700007ee7000080e7000082e7000084e7000086e7000088e700008ae700008ce700008ee7000090e70000 m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -388,7 +388,7 @@ MonoBehaviour: m_ListAreaState: m_SelectedInstanceIDs: m_LastClickedInstanceID: 0 - m_HadKeyboardFocusLastEvent: 0 + m_HadKeyboardFocusLastEvent: 1 m_ExpandedInstanceIDs: c6230000beca0000 m_RenameOverlay: m_UserAcceptedRename: 0 @@ -438,9 +438,9 @@ MonoBehaviour: m_Tooltip: m_Pos: serializedVersion: 2 - x: 1435.2001 - y: 73.6 - width: 99.80005 + x: 1428.8 + y: 80.8 + width: 99 height: 709.8 m_ViewDataDictionary: {fileID: 0} m_OverlayCanvas: @@ -480,10 +480,10 @@ MonoBehaviour: m_Tooltip: m_Pos: serializedVersion: 2 - x: 0 - y: 73.6 - width: 276.6 - height: 609.4 + x: 7.2000003 + y: 80.8 + width: 274.2 + height: 578.2 m_ViewDataDictionary: {fileID: 0} m_OverlayCanvas: m_LastAppliedPresetName: Default @@ -493,7 +493,7 @@ MonoBehaviour: scrollPos: {x: 0, y: 0} m_SelectedIDs: m_LastClickedID: 0 - m_ExpandedIDs: 26fbffff + m_ExpandedIDs: 88f9ffff m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -538,10 +538,10 @@ MonoBehaviour: m_Tooltip: m_Pos: serializedVersion: 2 - x: 277.6 - y: 73.6 - width: 1155.6 - height: 609.4 + x: 282.4 + y: 80.8 + width: 1144.3999 + height: 578.2 m_ViewDataDictionary: {fileID: 0} m_OverlayCanvas: m_LastAppliedPresetName: Default @@ -628,7 +628,7 @@ MonoBehaviour: floating: 0 collapsed: 0 displayed: 1 - snapOffset: {x: 67.5, y: 86} + snapOffset: {x: 67.5, y: 0} snapOffsetDelta: {x: 0, y: 0} snapCorner: 0 id: Orientation @@ -798,9 +798,9 @@ MonoBehaviour: m_PlayAudio: 0 m_AudioPlay: 0 m_Position: - m_Target: {x: 4.7169566, y: -1.5105127, z: -13.669513} + m_Target: {x: 3.1555827, y: -2.606645, z: -11.581512} speed: 2 - m_Value: {x: 4.7169566, y: -1.5105127, z: -13.669513} + m_Value: {x: 3.1555827, y: -2.606645, z: -11.581512} m_RenderMode: 0 m_CameraMode: drawMode: 0 @@ -847,13 +847,13 @@ MonoBehaviour: m_GridAxis: 1 m_gridOpacity: 0.5 m_Rotation: - m_Target: {x: -0.15410003, y: 0.4214132, z: -0.07290148, w: -0.89071184} + m_Target: {x: -0.12424246, y: 0.36107624, z: -0.048605483, w: -0.92295545} speed: 2 - m_Value: {x: -0.15409863, y: 0.4214094, z: -0.07290082, w: -0.8907038} + m_Value: {x: -0.12424113, y: 0.36107236, z: -0.04860496, w: -0.92294556} m_Size: - m_Target: 0.103477366 + m_Target: 0.4116602 speed: 2 - m_Value: 0.103477366 + m_Value: 0.4116602 m_Ortho: m_Target: 0 speed: 2 @@ -913,7 +913,7 @@ MonoBehaviour: m_ShowGizmos: 0 m_TargetDisplay: 0 m_ClearColor: {r: 0, g: 0, b: 0, a: 0} - m_TargetSize: {x: 3840, y: 2160} + m_TargetSize: {x: 1444.5, y: 735.5} m_TextureFilterMode: 0 m_TextureHideFlags: 61 m_RenderIMGUI: 1 @@ -928,10 +928,10 @@ MonoBehaviour: m_VRangeLocked: 0 hZoomLockedByDefault: 0 vZoomLockedByDefault: 0 - m_HBaseRangeMin: -1536 - m_HBaseRangeMax: 1536 - m_VBaseRangeMin: -864 - m_VBaseRangeMax: 864 + m_HBaseRangeMin: -577.8 + m_HBaseRangeMax: 577.8 + m_VBaseRangeMin: -294.2 + m_VBaseRangeMax: 294.2 m_HAllowExceedBaseRangeMin: 1 m_HAllowExceedBaseRangeMax: 1 m_VAllowExceedBaseRangeMin: 1 @@ -951,7 +951,7 @@ MonoBehaviour: y: 21 width: 1155.6 height: 588.4 - m_Scale: {x: 0.34050927, y: 0.34050927} + m_Scale: {x: 1, y: 1} m_Translation: {x: 577.8, y: 294.2} m_MarginLeft: 0 m_MarginRight: 0 @@ -959,12 +959,12 @@ MonoBehaviour: m_MarginBottom: 0 m_LastShownAreaInsideMargins: serializedVersion: 2 - x: -1696.8701 - y: -864 - width: 3393.7402 - height: 1728 + x: -577.8 + y: -294.2 + width: 1155.6 + height: 588.4 m_MinimalGUI: 1 - m_defaultScale: 0.34050927 + m_defaultScale: 1 m_LastWindowPixelSize: {x: 1444.5, y: 761.75} m_ClearInEditMode: 1 m_NoCameraWarning: 1 -- GitLab