From 432db4260c7081b170667e1e554b97349a046c5c Mon Sep 17 00:00:00 2001 From: marcgauch <34353267+marcgauch@users.noreply.github.com> Date: Thu, 7 Dec 2023 19:34:18 +0100 Subject: [PATCH] More or less placed gun --- Assets/Grab Offset.prefab | 4 +- Assets/Scenes/SampleScene.unity | 92 +++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+), 2 deletions(-) diff --git a/Assets/Grab Offset.prefab b/Assets/Grab Offset.prefab index 910feb6..27db45b 100644 --- a/Assets/Grab Offset.prefab +++ b/Assets/Grab Offset.prefab @@ -24,8 +24,8 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1833753722200232641} serializedVersion: 2 - m_LocalRotation: {x: 0.1947226, y: -0.0009537898, z: 0.15843226, w: 0.96797806} - m_LocalPosition: {x: 0.0173, y: -0.0502, z: -0.0383} + m_LocalRotation: {x: 0.19641057, y: -0.08320766, z: -0.05917528, w: 0.9751911} + m_LocalPosition: {x: 0.0161, y: -0.0496, z: -0.0459} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity index ae754f7..bdc18e5 100644 --- a/Assets/Scenes/SampleScene.unity +++ b/Assets/Scenes/SampleScene.unity @@ -2374,6 +2374,97 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 9067480af55f5874d8f613b16812f968, type: 3} m_Name: m_EditorClassIdentifier: +--- !u!1001 &2106522548 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 2867417286392604782, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + propertyPath: m_Name + value: Gun + objectReference: {fileID: 0} + - target: {fileID: 2872250911046700568, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2872250911046700568, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2872250911046700568, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2872250911046700568, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2872250911046700568, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2872250911046700568, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2872250911046700568, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2872250911046700568, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2872250911046700568, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2872250911046700568, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 2867417286392604782, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + insertIndex: -1 + addedObject: {fileID: 2106522551} + m_SourcePrefab: {fileID: 100100000, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} +--- !u!1 &2106522549 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 2867417286392604782, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + m_PrefabInstance: {fileID: 2106522548} + m_PrefabAsset: {fileID: 0} +--- !u!114 &2106522550 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 4283532953363553607, guid: 37e98970f8baf7647b735d9036006f0d, type: 3} + m_PrefabInstance: {fileID: 2106522548} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6be84e4d7829855419c06b94e56bd135, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &2106522551 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2106522549} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7f784a61b7cbfa864b26575436a02cc8, type: 3} + m_Name: + m_EditorClassIdentifier: + simpleShoot: {fileID: 2106522550} + shootButton: 2097152 + offset: {fileID: 4049662313537657896, guid: 8a7053ae412b1e82cbcc329ce7967f8e, type: 3} --- !u!1660057539 &9223372036854775807 SceneRoots: m_ObjectHideFlags: 0 @@ -2383,3 +2474,4 @@ SceneRoots: - {fileID: 1467388725} - {fileID: 1368183232} - {fileID: 1729297213} + - {fileID: 2106522548}