1
0
mirror of synced 2024-11-12 01:00:52 +01:00

change raymanager distance calculation; Add XR Device simulator; Add Config overlay

This commit is contained in:
xpeng 2023-03-06 16:23:06 +01:00
parent bf038cdad6
commit b64b292825
12 changed files with 1854 additions and 262 deletions

File diff suppressed because one or more lines are too long

View File

@ -42,6 +42,7 @@ MonoBehaviour:
- {fileID: 6760998554925213443}
- {fileID: 3607529374417723074}
- {fileID: 2518257850819104886}
- {fileID: 5471978460094067691}
- {fileID: -9221150314526244616}
m_renderMode: 1
m_depthSubmissionMode: 0
@ -259,11 +260,11 @@ MonoBehaviour:
m_Name: HandTrackingFeature Standalone
m_EditorClassIdentifier:
m_enabled: 0
nameUi:
version:
featureIdInternal:
openxrExtensionStrings:
company:
nameUi: Ultraleap Hand Tracking
version: 1.0.0
featureIdInternal: com.ultraleap.tracking.openxr.feature.handtracking
openxrExtensionStrings: XR_EXT_hand_tracking XR_ULTRALEAP_hand_tracking_forearm
company: Ultraleap
priority: 0
required: 0
metaPermissions: 1

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ef809580689012d4faf286894a424dd7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,4 @@
{
"displayName": "XR Device Simulator",
"description": "Assets related to the simulation of XR HMD and controllers."
}

View File

@ -0,0 +1,877 @@
{
"name": "XR Device Simulator Controls",
"maps": [
{
"name": "Main",
"id": "c96c4ddb-3eb8-4074-bbd9-a8ae6f1f6475",
"actions": [
{
"name": "Keyboard X Translate",
"type": "Value",
"id": "d4eb7006-5077-4816-9d5c-f570b6d586f3",
"expectedControlType": "Axis",
"processors": "",
"interactions": ""
},
{
"name": "Keyboard Z Translate",
"type": "Value",
"id": "3ea275ac-e111-4610-891f-105676c72cd5",
"expectedControlType": "Axis",
"processors": "",
"interactions": ""
},
{
"name": "Keyboard Y Translate",
"type": "Value",
"id": "5cc58f95-e9dc-4675-a42e-dd66874c3ba3",
"expectedControlType": "Axis",
"processors": "",
"interactions": ""
},
{
"name": "Manipulate LeftHand",
"type": "Button",
"id": "07c46cc4-c35d-4364-a878-68fad8ab8c64",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Manipulate RightHand",
"type": "Button",
"id": "307cb608-f32e-48a3-8ce6-d1cd83a5fb90",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Toggle Manipulate LeftHand",
"type": "Button",
"id": "847b79d9-a69b-4484-8688-a4bf40e58163",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Toggle Manipulate RightHand",
"type": "Button",
"id": "241f6068-ebc8-4c6d-b747-8bc2c1f74f87",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Manipulate Head",
"type": "Button",
"id": "f5febf74-651b-4f73-8d0a-08b0acdabc4d",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Mouse Delta",
"type": "Value",
"id": "0b945dbf-d750-40cb-97c6-593686fcf012",
"expectedControlType": "Vector2",
"processors": "",
"interactions": ""
},
{
"name": "Mouse Scroll",
"type": "Value",
"id": "b2a408da-a9fd-4638-9af3-17fb9bc2811d",
"expectedControlType": "Vector2",
"processors": "",
"interactions": ""
},
{
"name": "Rotate Mode Override",
"type": "Button",
"id": "2e390909-c0f6-4ca5-b8bc-4c54090f96d9",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Toggle Mouse Transformation Mode",
"type": "Button",
"id": "ae2b5c7f-b5e0-4b93-b674-172de9f68380",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Negate Mode",
"type": "Button",
"id": "8c837143-e018-41f0-9e0e-907acb9d7360",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Z Constraint",
"type": "Button",
"id": "d3e9308c-6f8c-46f7-bb6f-14422c345983",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "X Constraint",
"type": "Button",
"id": "11dc7a94-7230-49ff-b56d-06e6473e9951",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Y Constraint",
"type": "Button",
"id": "11ab79c6-b9c6-4301-8086-3e9c6904ef14",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Reset",
"type": "Button",
"id": "339ccb79-aee9-4ba4-8864-3b6c81c199db",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Toggle Cursor Lock",
"type": "Button",
"id": "9bd36ab1-f676-4ff4-8a4d-ba0c6fb36268",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
}
],
"bindings": [
{
"name": "1D Axis",
"id": "db741065-2a46-439d-9e13-11960dc3355a",
"path": "1DAxis",
"interactions": "",
"processors": "",
"groups": "",
"action": "Keyboard X Translate",
"isComposite": true,
"isPartOfComposite": false
},
{
"name": "negative",
"id": "3d2e07de-025e-4c2e-98df-250511a8ff6d",
"path": "<Keyboard>/a",
"interactions": "",
"processors": "",
"groups": "",
"action": "Keyboard X Translate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "positive",
"id": "04e1437d-c862-4a04-8f8e-40e9f52c4f5e",
"path": "<Keyboard>/d",
"interactions": "",
"processors": "",
"groups": "",
"action": "Keyboard X Translate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "1D Axis",
"id": "cb7c4679-31f4-4170-885a-e7d78c049443",
"path": "1DAxis",
"interactions": "",
"processors": "",
"groups": "",
"action": "Keyboard Z Translate",
"isComposite": true,
"isPartOfComposite": false
},
{
"name": "negative",
"id": "732e790c-f2a2-4f90-b525-53139a358de7",
"path": "<Keyboard>/s",
"interactions": "",
"processors": "",
"groups": "",
"action": "Keyboard Z Translate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "positive",
"id": "d5a98916-ade7-419d-a138-86bcdf05670f",
"path": "<Keyboard>/w",
"interactions": "",
"processors": "",
"groups": "",
"action": "Keyboard Z Translate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "1D Axis",
"id": "fca20498-bf6f-4824-ba15-6dc2d191eb2f",
"path": "1DAxis",
"interactions": "",
"processors": "",
"groups": "",
"action": "Keyboard Y Translate",
"isComposite": true,
"isPartOfComposite": false
},
{
"name": "negative",
"id": "2c01790c-a24a-4266-a2e9-74e2a1ca3fa7",
"path": "<Keyboard>/q",
"interactions": "",
"processors": "",
"groups": "",
"action": "Keyboard Y Translate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "positive",
"id": "f5223aed-93c0-4633-8aa3-c393ce890872",
"path": "<Keyboard>/e",
"interactions": "",
"processors": "",
"groups": "",
"action": "Keyboard Y Translate",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "",
"id": "fcfb16fb-edee-474c-b1f2-f10b2a0a3569",
"path": "<Keyboard>/leftShift",
"interactions": "",
"processors": "",
"groups": "",
"action": "Manipulate LeftHand",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "e791caef-78d3-4f68-9104-212f73ac0642",
"path": "<Keyboard>/space",
"interactions": "",
"processors": "",
"groups": "",
"action": "Manipulate RightHand",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "b62df009-54c9-4b03-9721-07ca66fe1bdf",
"path": "<Keyboard>/t",
"interactions": "",
"processors": "",
"groups": "",
"action": "Toggle Manipulate LeftHand",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "e8a0a3b9-06cf-40a8-86d8-1d8f1d704451",
"path": "<Keyboard>/y",
"interactions": "",
"processors": "",
"groups": "",
"action": "Toggle Manipulate RightHand",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "b2c1b1cd-6ea7-45b6-b68f-17b3662b4d3a",
"path": "<Mouse>/delta",
"interactions": "",
"processors": "",
"groups": "",
"action": "Mouse Delta",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "66e536bc-b5b6-4c7b-903a-fbcc05fc854e",
"path": "<Mouse>/scroll",
"interactions": "",
"processors": "",
"groups": "",
"action": "Mouse Scroll",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "2b070a4a-e044-4cbd-a8e2-6b362785bf21",
"path": "<Keyboard>/leftCtrl",
"interactions": "",
"processors": "",
"groups": "",
"action": "Rotate Mode Override",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "0fa0d566-1e07-4e17-9b14-3e8fce69ec26",
"path": "<Keyboard>/x",
"interactions": "",
"processors": "",
"groups": "",
"action": "X Constraint",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "71c185e1-73fb-4691-b910-70610f397b42",
"path": "<Keyboard>/c",
"interactions": "",
"processors": "",
"groups": "",
"action": "Y Constraint",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "09809c10-d09e-4c49-b58f-1995e50cf685",
"path": "<Keyboard>/z",
"interactions": "",
"processors": "",
"groups": "",
"action": "Z Constraint",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "7611d6eb-0ff4-431f-998d-6fa429e0e1e1",
"path": "<Keyboard>/r",
"interactions": "",
"processors": "",
"groups": "",
"action": "Toggle Mouse Transformation Mode",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "5c889b78-f9fd-4cd7-96dd-5399428f6992",
"path": "<Mouse>/middleButton",
"interactions": "",
"processors": "",
"groups": "",
"action": "Negate Mode",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "85f27bdb-dfe8-48d3-8512-205b3ad6306a",
"path": "<Keyboard>/backslash",
"interactions": "",
"processors": "",
"groups": "",
"action": "Toggle Cursor Lock",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "3542472e-e883-407a-b967-5b879b2d7dc4",
"path": "<Mouse>/rightButton",
"interactions": "",
"processors": "",
"groups": "",
"action": "Manipulate Head",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "cd7dcdd6-b569-4c25-87ea-c62a0fb1cf89",
"path": "<Keyboard>/v",
"interactions": "",
"processors": "",
"groups": "",
"action": "Reset",
"isComposite": false,
"isPartOfComposite": false
}
]
},
{
"name": "Input Controls",
"id": "404d9e15-a8bc-4b52-89e8-048203e913fa",
"actions": [
{
"name": "Axis 2D",
"type": "Value",
"id": "12cda119-7fbf-4f67-9db5-e5ad3b7905ca",
"expectedControlType": "Vector2",
"processors": "",
"interactions": ""
},
{
"name": "Resting Hand Axis 2D",
"type": "Value",
"id": "a2176ee2-e6ed-44a9-a5ee-858b1a6089fa",
"expectedControlType": "Vector2",
"processors": "",
"interactions": ""
},
{
"name": "Toggle Device Position Target",
"type": "Button",
"id": "15cd3c4a-56b1-4a43-a924-a2118e2adaf4",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Toggle Primary 2D Axis Target",
"type": "Button",
"id": "e0fdec2d-309b-4313-aad7-9dcc71f1394d",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Toggle Secondary 2D Axis Target",
"type": "Button",
"id": "b3b49ea5-f80f-4d24-a782-d61a13a004b3",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Grip",
"type": "Button",
"id": "99383123-529b-44b3-be25-fc03e45b0117",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Trigger",
"type": "Button",
"id": "4c755f54-9a5b-4ab4-8971-86e750cce8c5",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Primary Button",
"type": "Button",
"id": "f21a59fc-ba2d-43ac-9051-f61598c360bd",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Secondary Button",
"type": "Button",
"id": "33caae29-953d-46ee-8327-c9279a3e6112",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Menu",
"type": "Button",
"id": "4c344ddd-429e-4075-bf61-7d7a4915c0f8",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Primary 2D Axis Click",
"type": "Button",
"id": "c98dc3c2-51e8-4d47-b5e8-9fbe8f357cea",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Secondary 2D Axis Click",
"type": "Button",
"id": "9a69a85f-8b0d-4959-94ff-a159876275d2",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Primary 2D Axis Touch",
"type": "Button",
"id": "068c19f3-3201-418a-b101-88dcc47aa2fd",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Secondary 2D Axis Touch",
"type": "Button",
"id": "ec51a057-e484-434d-b335-03f16cfcf26d",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Primary Touch",
"type": "Button",
"id": "7ce78a0e-a94b-49fa-b3d5-5fca18de3391",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
},
{
"name": "Secondary Touch",
"type": "Button",
"id": "bd4f8d55-321e-4d2c-8215-c85c461b37eb",
"expectedControlType": "Button",
"processors": "",
"interactions": ""
}
],
"bindings": [
{
"name": "2D Vector",
"id": "909c7e62-e6ea-4683-8b23-883ad4898d18",
"path": "2DVector",
"interactions": "",
"processors": "",
"groups": "",
"action": "Axis 2D",
"isComposite": true,
"isPartOfComposite": false
},
{
"name": "up",
"id": "0c29f651-2c07-4554-b2e8-dab5be5b2e87",
"path": "<Keyboard>/w",
"interactions": "",
"processors": "",
"groups": "",
"action": "Axis 2D",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "down",
"id": "7a9f0789-f285-4c25-b1f4-c4f34c4d0451",
"path": "<Keyboard>/s",
"interactions": "",
"processors": "",
"groups": "",
"action": "Axis 2D",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "left",
"id": "905af182-924d-46b5-94d3-e22db48c4085",
"path": "<Keyboard>/a",
"interactions": "",
"processors": "",
"groups": "",
"action": "Axis 2D",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "right",
"id": "88e79231-cdb4-400a-8980-b4576ee0a263",
"path": "<Keyboard>/d",
"interactions": "",
"processors": "",
"groups": "",
"action": "Axis 2D",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "",
"id": "9404bec7-672a-4fb1-adb3-e2dc4e32801b",
"path": "<Keyboard>/3",
"interactions": "",
"processors": "",
"groups": "",
"action": "Toggle Device Position Target",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "4bfdd0e6-1936-4f44-8e97-20e16dbc879f",
"path": "<Keyboard>/1",
"interactions": "",
"processors": "",
"groups": "",
"action": "Toggle Primary 2D Axis Target",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "81d47d9e-4920-4098-94d8-bac2888d6433",
"path": "<Keyboard>/2",
"interactions": "",
"processors": "",
"groups": "",
"action": "Toggle Secondary 2D Axis Target",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "2D Vector",
"id": "82126405-60e1-49f1-9b69-e965eaacb8ee",
"path": "2DVector",
"interactions": "",
"processors": "",
"groups": "",
"action": "Resting Hand Axis 2D",
"isComposite": true,
"isPartOfComposite": false
},
{
"name": "up",
"id": "e27996d4-255f-4240-a9a6-fd8714a69a0c",
"path": "<Mouse>/forwardButton",
"interactions": "",
"processors": "",
"groups": "",
"action": "Resting Hand Axis 2D",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "down",
"id": "77a74547-37ef-4713-a31b-725b210d98e9",
"path": "<Mouse>/backButton",
"interactions": "",
"processors": "",
"groups": "",
"action": "Resting Hand Axis 2D",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "left",
"id": "823b1a5b-780d-4b61-8fd3-cb363e37df26",
"path": "<Keyboard>/q",
"interactions": "",
"processors": "",
"groups": "",
"action": "Resting Hand Axis 2D",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "right",
"id": "ed43b77d-dba1-4b89-a867-d4bb242c19e3",
"path": "<Keyboard>/e",
"interactions": "",
"processors": "",
"groups": "",
"action": "Resting Hand Axis 2D",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "2D Vector",
"id": "38ceacb7-94a0-455f-8b09-eab87cdb5abb",
"path": "2DVector",
"interactions": "",
"processors": "",
"groups": "",
"action": "Resting Hand Axis 2D",
"isComposite": true,
"isPartOfComposite": false
},
{
"name": "up",
"id": "0499cb7f-9e2c-4ac7-b2bf-6a71a4457ea1",
"path": "<Keyboard>/i",
"interactions": "",
"processors": "",
"groups": "",
"action": "Resting Hand Axis 2D",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "down",
"id": "b95888ad-1760-4389-8e11-9129f9744211",
"path": "<Keyboard>/k",
"interactions": "",
"processors": "",
"groups": "",
"action": "Resting Hand Axis 2D",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "left",
"id": "fe8ea864-1ec3-4bd6-9c30-854922a9bf73",
"path": "<Keyboard>/j",
"interactions": "",
"processors": "",
"groups": "",
"action": "Resting Hand Axis 2D",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "right",
"id": "d3516be4-3963-4077-82fc-347a180d6949",
"path": "<Keyboard>/l",
"interactions": "",
"processors": "",
"groups": "",
"action": "Resting Hand Axis 2D",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "",
"id": "aac14b93-d556-4433-8893-0eeafd6190f8",
"path": "<Keyboard>/g",
"interactions": "",
"processors": "",
"groups": "",
"action": "Grip",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "bc242731-d17f-4b22-aa06-3988e7cffc87",
"path": "<Mouse>/leftButton",
"interactions": "",
"processors": "",
"groups": "",
"action": "Trigger",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "5b853efd-1a70-4a8b-bd1b-84100070d99c",
"path": "<Keyboard>/b",
"interactions": "",
"processors": "",
"groups": "",
"action": "Primary Button",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "86def88d-725b-4541-8677-68ae5946fbd4",
"path": "<Keyboard>/n",
"interactions": "",
"processors": "",
"groups": "",
"action": "Secondary Button",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "c8b72a5c-4ece-44b9-b4a0-a84ce577c393",
"path": "<Keyboard>/m",
"interactions": "",
"processors": "",
"groups": "",
"action": "Menu",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "91ad530e-a4db-4a8c-8e21-599db3968011",
"path": "<Keyboard>/4",
"interactions": "",
"processors": "",
"groups": "",
"action": "Primary 2D Axis Click",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "1504de2d-a743-4608-a126-5b3ef5695007",
"path": "<Keyboard>/5",
"interactions": "",
"processors": "",
"groups": "",
"action": "Secondary 2D Axis Click",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "73f9a145-85de-4e35-97d5-824ab21ea67c",
"path": "<Keyboard>/6",
"interactions": "",
"processors": "",
"groups": "",
"action": "Primary 2D Axis Touch",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "0d5d8b6c-3d19-481a-8d8f-9f099a1a43e3",
"path": "<Keyboard>/7",
"interactions": "",
"processors": "",
"groups": "",
"action": "Secondary 2D Axis Touch",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "d431c3c8-2dbc-43fb-9062-1a7e478bbc11",
"path": "<Keyboard>/8",
"interactions": "",
"processors": "",
"groups": "",
"action": "Primary Touch",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "02d5a7f4-ea4a-465a-8232-b5419ca49f69",
"path": "<Keyboard>/9",
"interactions": "",
"processors": "",
"groups": "",
"action": "Secondary Touch",
"isComposite": false,
"isPartOfComposite": false
}
]
}
],
"controlSchemes": []
}

View File

@ -0,0 +1,14 @@
fileFormatVersion: 2
guid: da2b439d1a2de5c46a4f428f8cf4fe19
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 8404be70184654265930450def6a9037, type: 3}
generateWrapperCode: 0
wrapperCodePath:
wrapperClassName:
wrapperCodeNamespace:

View File

@ -0,0 +1,142 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &6598815579406187037
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6598815579406187027}
- component: {fileID: 6598815579406187026}
- component: {fileID: 4949837510494428226}
m_Layer: 0
m_Name: XR Device Simulator
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6598815579406187027
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6598815579406187037}
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_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &6598815579406187026
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6598815579406187037}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5b34befe5d0cbb642bb5d09104a47160, type: 3}
m_Name:
m_EditorClassIdentifier:
m_KeyboardXTranslateAction: {fileID: -2435995061748527091, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_KeyboardYTranslateAction: {fileID: 4091624078112751379, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_KeyboardZTranslateAction: {fileID: 8957443236229058949, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_ManipulateLeftAction: {fileID: 3215650258570939094, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_ManipulateRightAction: {fileID: 138396950478516224, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_ToggleManipulateLeftAction: {fileID: 2547216639932606815, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_ToggleManipulateRightAction: {fileID: 743384497930276301, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_ManipulateHeadAction: {fileID: -3619485213038975404, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_MouseDeltaAction: {fileID: -1273072440521047205, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_MouseScrollAction: {fileID: 4546399164687744209, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_RotateModeOverrideAction: {fileID: -8754530952185592012, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_ToggleMouseTransformationModeAction: {fileID: 3100586429251580691, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_NegateModeAction: {fileID: 1882878426541990298, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_XConstraintAction: {fileID: -8086843181801629294, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_YConstraintAction: {fileID: 5691479700773754790, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_ZConstraintAction: {fileID: 1644704167276153141, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_ResetAction: {fileID: -2638007419058092452, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_ToggleCursorLockAction: {fileID: -2382836779261746822, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_ToggleDevicePositionTargetAction: {fileID: -6716103979869350223, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_TogglePrimary2DAxisTargetAction: {fileID: -7682297331024740639, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_ToggleSecondary2DAxisTargetAction: {fileID: 1155009490345466815, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_Axis2DAction: {fileID: 3916730463652292459, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_RestingHandAxis2DAction: {fileID: 3286401898038372283, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_GripAction: {fileID: -681151063944262417, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_TriggerAction: {fileID: -2775837120590753941, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_PrimaryButtonAction: {fileID: -160020527567978557, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_SecondaryButtonAction: {fileID: -5294950080248747617, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_MenuAction: {fileID: 885331191818821413, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_Primary2DAxisClickAction: {fileID: -2837746240632994702, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_Secondary2DAxisClickAction: {fileID: -7174462898626817516, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_Primary2DAxisTouchAction: {fileID: -5833971730023712372, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_Secondary2DAxisTouchAction: {fileID: 2328165288370724080, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_PrimaryTouchAction: {fileID: 2841133684394947652, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_SecondaryTouchAction: {fileID: -8190023648362360997, guid: da2b439d1a2de5c46a4f428f8cf4fe19,
type: 3}
m_CameraTransform: {fileID: 0}
m_KeyboardTranslateSpace: 0
m_MouseTranslateSpace: 2
m_KeyboardXTranslateSpeed: 0.2
m_KeyboardYTranslateSpeed: 0.2
m_KeyboardZTranslateSpeed: 0.2
m_MouseXTranslateSensitivity: 0.0004
m_MouseYTranslateSensitivity: 0.0004
m_MouseScrollTranslateSensitivity: 0.0002
m_MouseXRotateSensitivity: 0.1
m_MouseYRotateSensitivity: 0.1
m_MouseScrollRotateSensitivity: 0.05
m_MouseYRotateInvert: 0
m_DesiredCursorLockMode: 1
--- !u!114 &4949837510494428226
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6598815579406187037}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 017c5e3933235514c9520e1dace2a4b2, type: 3}
m_Name:
m_EditorClassIdentifier:
m_ActionAssets:
- {fileID: -944628639613478452, guid: da2b439d1a2de5c46a4f428f8cf4fe19, type: 3}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 9f5a24a380916d14db9775daab4fe333
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,8 @@ using UnityEngine.XR.Interaction.Toolkit;
public class RayManager : MonoBehaviour
{
public bool RaySwitch = true;
public float Distance = -0.45f;
public Transform CabinetTransform;
public float Distance = 0.5f;
XRRayInteractor interactor;
XRInteractorLineVisual lineVisual;
LineRenderer lineRenderer;
@ -20,7 +21,10 @@ public class RayManager : MonoBehaviour
// Update is called once per frame
void Update()
{
if (gameObject.transform.position.z > Distance || !RaySwitch)
var controllerDistance = CabinetTransform.position.z - gameObject.transform.position.z;
controllerDistance = Mathf.Abs(controllerDistance);
Debug.Log(controllerDistance);
if (controllerDistance < Distance || !RaySwitch)
{
interactor.enabled = false;
lineRenderer.enabled = false;

View File

@ -0,0 +1,23 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(PrefabLightmapData))]
public class PrefabLightmapTransfer : MonoBehaviour
{
public GameObject targetPrefabParent;
private PrefabLightmapData sourceLightmapData;
private PrefabLightmapData lightmapData;
void Awake()
{
sourceLightmapData = GetComponent<PrefabLightmapData>();
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1d65a0e9940108744b79be24a8a3d3dd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: