├── .gitignore ├── Assets ├── Plugins.meta ├── Plugins │ ├── TrackIRUnity.dll │ └── TrackIRUnity.dll.meta ├── TrackIR.meta └── TrackIR │ ├── Demo.meta │ ├── Demo │ ├── CheckerX10.mat │ ├── CheckerX10.mat.meta │ ├── CheckerX100.mat │ ├── CheckerX100.mat.meta │ ├── DemoScene.unity │ └── DemoScene.unity.meta │ ├── Scripts.meta │ └── Scripts │ ├── TrackIRTransform.cs │ └── TrackIRTransform.cs.meta ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset ├── README.md ├── Screenshots ├── Component.png ├── DemoTracking.gif ├── Hierarchy.png └── ThirdPerson.gif └── TrackIRTransform.unitypackage /.gitignore: -------------------------------------------------------------------------------- 1 | /* 2 | /*/ 3 | 4 | !.gitignore 5 | !/Assets/ 6 | !/ProjectSettings/ 7 | !/Packages/ 8 | !/Screenshots/ 9 | !*.unitypackage 10 | 11 | *.blend1 12 | *.blend1.meta 13 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a5beef28692ab44e95d3de1942305c6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/TrackIRUnity.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brihernandez/Unity-TrackIR-Plugin/bf62af03e1bb24e3451dbe9ac5955766055a3429/Assets/Plugins/TrackIRUnity.dll -------------------------------------------------------------------------------- /Assets/Plugins/TrackIRUnity.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a57cc786fb66d4d418d9ef930efc1454 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | Any: 13 | second: 14 | enabled: 1 15 | settings: {} 16 | - first: 17 | Editor: Editor 18 | second: 19 | enabled: 0 20 | settings: 21 | DefaultValueInitialized: true 22 | - first: 23 | Windows Store Apps: WindowsStoreApps 24 | second: 25 | enabled: 0 26 | settings: 27 | CPU: AnyCPU 28 | userData: 29 | assetBundleName: 30 | assetBundleVariant: 31 | -------------------------------------------------------------------------------- /Assets/TrackIR.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd285862b12684944be6f30c61335423 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TrackIR/Demo.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70879c4b18d0edf4cae0b236819e4d78 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TrackIR/Demo/CheckerX10.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: CheckerX10 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 10, y: 10} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 10305, guid: 0000000000000000f000000000000000, type: 0} 43 | m_Scale: {x: 10, y: 10} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.371 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.08 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.9044118, g: 0.9044118, b: 0.9044118, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/TrackIR/Demo/CheckerX10.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94b4dd82a5597da4980bfa40f5714988 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TrackIR/Demo/CheckerX100.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: CheckerX100 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 100, y: 100} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 10305, guid: 0000000000000000f000000000000000, type: 0} 43 | m_Scale: {x: 100, y: 100} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.371 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.9044118, g: 0.9044118, b: 0.9044118, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/TrackIR/Demo/CheckerX100.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d28f02bb2b2fa4149bf6088e60aca35a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TrackIR/Demo/DemoScene.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 8 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.18073398, g: 0.22625184, b: 0.30716074, a: 1} 42 | --- !u!157 &3 43 | LightmapSettings: 44 | m_ObjectHideFlags: 0 45 | serializedVersion: 11 46 | m_GIWorkflowMode: 0 47 | m_GISettings: 48 | serializedVersion: 2 49 | m_BounceScale: 1 50 | m_IndirectOutputScale: 1 51 | m_AlbedoBoost: 1 52 | m_TemporalCoherenceThreshold: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 9 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_TextureWidth: 1024 61 | m_TextureHeight: 1024 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 1 65 | m_CompAOExponentDirect: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVRFilterTypeDirect: 0 81 | m_PVRFilterTypeIndirect: 0 82 | m_PVRFilterTypeAO: 0 83 | m_PVRFilteringMode: 1 84 | m_PVRCulling: 1 85 | m_PVRFilteringGaussRadiusDirect: 1 86 | m_PVRFilteringGaussRadiusIndirect: 5 87 | m_PVRFilteringGaussRadiusAO: 2 88 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 89 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 90 | m_PVRFilteringAtrousPositionSigmaAO: 1 91 | m_ShowResolutionOverlay: 1 92 | m_LightingDataAsset: {fileID: 0} 93 | m_UseShadowmask: 1 94 | --- !u!196 &4 95 | NavMeshSettings: 96 | serializedVersion: 2 97 | m_ObjectHideFlags: 0 98 | m_BuildSettings: 99 | serializedVersion: 2 100 | agentTypeID: 0 101 | agentRadius: 0.5 102 | agentHeight: 2 103 | agentSlope: 45 104 | agentClimb: 0.4 105 | ledgeDropHeight: 0 106 | maxJumpAcrossDistance: 0 107 | minRegionArea: 2 108 | manualCellSize: 0 109 | cellSize: 0.16666667 110 | manualTileSize: 0 111 | tileSize: 256 112 | accuratePlacement: 0 113 | debug: 114 | m_Flags: 0 115 | m_NavMeshData: {fileID: 0} 116 | --- !u!1 &60569986 117 | GameObject: 118 | m_ObjectHideFlags: 0 119 | m_PrefabParentObject: {fileID: 0} 120 | m_PrefabInternal: {fileID: 0} 121 | serializedVersion: 5 122 | m_Component: 123 | - component: {fileID: 60569990} 124 | - component: {fileID: 60569989} 125 | - component: {fileID: 60569988} 126 | - component: {fileID: 60569987} 127 | m_Layer: 0 128 | m_Name: Main Camera 129 | m_TagString: MainCamera 130 | m_Icon: {fileID: 0} 131 | m_NavMeshLayer: 0 132 | m_StaticEditorFlags: 0 133 | m_IsActive: 1 134 | --- !u!81 &60569987 135 | AudioListener: 136 | m_ObjectHideFlags: 0 137 | m_PrefabParentObject: {fileID: 0} 138 | m_PrefabInternal: {fileID: 0} 139 | m_GameObject: {fileID: 60569986} 140 | m_Enabled: 1 141 | --- !u!124 &60569988 142 | Behaviour: 143 | m_ObjectHideFlags: 0 144 | m_PrefabParentObject: {fileID: 0} 145 | m_PrefabInternal: {fileID: 0} 146 | m_GameObject: {fileID: 60569986} 147 | m_Enabled: 1 148 | --- !u!20 &60569989 149 | Camera: 150 | m_ObjectHideFlags: 0 151 | m_PrefabParentObject: {fileID: 0} 152 | m_PrefabInternal: {fileID: 0} 153 | m_GameObject: {fileID: 60569986} 154 | m_Enabled: 1 155 | serializedVersion: 2 156 | m_ClearFlags: 1 157 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 158 | m_NormalizedViewPortRect: 159 | serializedVersion: 2 160 | x: 0 161 | y: 0 162 | width: 1 163 | height: 1 164 | near clip plane: 0.3 165 | far clip plane: 1000 166 | field of view: 60 167 | orthographic: 0 168 | orthographic size: 5 169 | m_Depth: -1 170 | m_CullingMask: 171 | serializedVersion: 2 172 | m_Bits: 4294967295 173 | m_RenderingPath: -1 174 | m_TargetTexture: {fileID: 0} 175 | m_TargetDisplay: 0 176 | m_TargetEye: 3 177 | m_HDR: 1 178 | m_AllowMSAA: 1 179 | m_AllowDynamicResolution: 0 180 | m_ForceIntoRT: 0 181 | m_OcclusionCulling: 1 182 | m_StereoConvergence: 10 183 | m_StereoSeparation: 0.022 184 | --- !u!4 &60569990 185 | Transform: 186 | m_ObjectHideFlags: 0 187 | m_PrefabParentObject: {fileID: 0} 188 | m_PrefabInternal: {fileID: 0} 189 | m_GameObject: {fileID: 60569986} 190 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 191 | m_LocalPosition: {x: 0, y: 0, z: 0} 192 | m_LocalScale: {x: 1, y: 1, z: 1} 193 | m_Children: 194 | - {fileID: 489485838} 195 | - {fileID: 828160738} 196 | m_Father: {fileID: 309556590} 197 | m_RootOrder: 0 198 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 199 | --- !u!1 &128437023 200 | GameObject: 201 | m_ObjectHideFlags: 0 202 | m_PrefabParentObject: {fileID: 0} 203 | m_PrefabInternal: {fileID: 0} 204 | serializedVersion: 5 205 | m_Component: 206 | - component: {fileID: 128437025} 207 | - component: {fileID: 128437024} 208 | m_Layer: 0 209 | m_Name: Directional Light 210 | m_TagString: Untagged 211 | m_Icon: {fileID: 0} 212 | m_NavMeshLayer: 0 213 | m_StaticEditorFlags: 0 214 | m_IsActive: 1 215 | --- !u!108 &128437024 216 | Light: 217 | m_ObjectHideFlags: 0 218 | m_PrefabParentObject: {fileID: 0} 219 | m_PrefabInternal: {fileID: 0} 220 | m_GameObject: {fileID: 128437023} 221 | m_Enabled: 1 222 | serializedVersion: 8 223 | m_Type: 1 224 | m_Color: {r: 1, g: 0.9822453, b: 0.9338235, a: 1} 225 | m_Intensity: 1 226 | m_Range: 10 227 | m_SpotAngle: 30 228 | m_CookieSize: 10 229 | m_Shadows: 230 | m_Type: 2 231 | m_Resolution: -1 232 | m_CustomResolution: -1 233 | m_Strength: 1 234 | m_Bias: 0.05 235 | m_NormalBias: 0.4 236 | m_NearPlane: 0.2 237 | m_Cookie: {fileID: 0} 238 | m_DrawHalo: 0 239 | m_Flare: {fileID: 0} 240 | m_RenderMode: 0 241 | m_CullingMask: 242 | serializedVersion: 2 243 | m_Bits: 4294967295 244 | m_Lightmapping: 4 245 | m_AreaSize: {x: 1, y: 1} 246 | m_BounceIntensity: 1 247 | m_ColorTemperature: 6570 248 | m_UseColorTemperature: 0 249 | m_ShadowRadius: 0 250 | m_ShadowAngle: 0 251 | --- !u!4 &128437025 252 | Transform: 253 | m_ObjectHideFlags: 0 254 | m_PrefabParentObject: {fileID: 0} 255 | m_PrefabInternal: {fileID: 0} 256 | m_GameObject: {fileID: 128437023} 257 | m_LocalRotation: {x: 0.38780457, y: -0.30696183, z: 0.1299386, w: 0.8593591} 258 | m_LocalPosition: {x: 0, y: 3, z: 0} 259 | m_LocalScale: {x: 1, y: 1, z: 1} 260 | m_Children: [] 261 | m_Father: {fileID: 0} 262 | m_RootOrder: 0 263 | m_LocalEulerAnglesHint: {x: 48.271004, y: -39.882004, z: -1.2700001} 264 | --- !u!1 &195145116 265 | GameObject: 266 | m_ObjectHideFlags: 0 267 | m_PrefabParentObject: {fileID: 0} 268 | m_PrefabInternal: {fileID: 0} 269 | serializedVersion: 5 270 | m_Component: 271 | - component: {fileID: 195145120} 272 | - component: {fileID: 195145119} 273 | - component: {fileID: 195145118} 274 | - component: {fileID: 195145117} 275 | m_Layer: 0 276 | m_Name: Cube 277 | m_TagString: Untagged 278 | m_Icon: {fileID: 0} 279 | m_NavMeshLayer: 0 280 | m_StaticEditorFlags: 0 281 | m_IsActive: 1 282 | --- !u!23 &195145117 283 | MeshRenderer: 284 | m_ObjectHideFlags: 0 285 | m_PrefabParentObject: {fileID: 0} 286 | m_PrefabInternal: {fileID: 0} 287 | m_GameObject: {fileID: 195145116} 288 | m_Enabled: 1 289 | m_CastShadows: 1 290 | m_ReceiveShadows: 1 291 | m_DynamicOccludee: 1 292 | m_MotionVectors: 1 293 | m_LightProbeUsage: 1 294 | m_ReflectionProbeUsage: 1 295 | m_Materials: 296 | - {fileID: 2100000, guid: 94b4dd82a5597da4980bfa40f5714988, type: 2} 297 | m_StaticBatchInfo: 298 | firstSubMesh: 0 299 | subMeshCount: 0 300 | m_StaticBatchRoot: {fileID: 0} 301 | m_ProbeAnchor: {fileID: 0} 302 | m_LightProbeVolumeOverride: {fileID: 0} 303 | m_ScaleInLightmap: 1 304 | m_PreserveUVs: 1 305 | m_IgnoreNormalsForChartDetection: 0 306 | m_ImportantGI: 0 307 | m_StitchLightmapSeams: 0 308 | m_SelectedEditorRenderState: 3 309 | m_MinimumChartSize: 4 310 | m_AutoUVMaxDistance: 0.5 311 | m_AutoUVMaxAngle: 89 312 | m_LightmapParameters: {fileID: 0} 313 | m_SortingLayerID: 0 314 | m_SortingLayer: 0 315 | m_SortingOrder: 0 316 | --- !u!65 &195145118 317 | BoxCollider: 318 | m_ObjectHideFlags: 0 319 | m_PrefabParentObject: {fileID: 0} 320 | m_PrefabInternal: {fileID: 0} 321 | m_GameObject: {fileID: 195145116} 322 | m_Material: {fileID: 0} 323 | m_IsTrigger: 0 324 | m_Enabled: 1 325 | serializedVersion: 2 326 | m_Size: {x: 1, y: 1, z: 1} 327 | m_Center: {x: 0, y: 0, z: 0} 328 | --- !u!33 &195145119 329 | MeshFilter: 330 | m_ObjectHideFlags: 0 331 | m_PrefabParentObject: {fileID: 0} 332 | m_PrefabInternal: {fileID: 0} 333 | m_GameObject: {fileID: 195145116} 334 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 335 | --- !u!4 &195145120 336 | Transform: 337 | m_ObjectHideFlags: 0 338 | m_PrefabParentObject: {fileID: 0} 339 | m_PrefabInternal: {fileID: 0} 340 | m_GameObject: {fileID: 195145116} 341 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 342 | m_LocalPosition: {x: -1, y: 0.5, z: 0} 343 | m_LocalScale: {x: 1, y: 1, z: 1} 344 | m_Children: [] 345 | m_Father: {fileID: 0} 346 | m_RootOrder: 2 347 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 348 | --- !u!1 &309556589 349 | GameObject: 350 | m_ObjectHideFlags: 0 351 | m_PrefabParentObject: {fileID: 0} 352 | m_PrefabInternal: {fileID: 0} 353 | serializedVersion: 5 354 | m_Component: 355 | - component: {fileID: 309556590} 356 | - component: {fileID: 309556591} 357 | m_Layer: 0 358 | m_Name: TrackIR 359 | m_TagString: Untagged 360 | m_Icon: {fileID: 0} 361 | m_NavMeshLayer: 0 362 | m_StaticEditorFlags: 0 363 | m_IsActive: 1 364 | --- !u!4 &309556590 365 | Transform: 366 | m_ObjectHideFlags: 0 367 | m_PrefabParentObject: {fileID: 0} 368 | m_PrefabInternal: {fileID: 0} 369 | m_GameObject: {fileID: 309556589} 370 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 371 | m_LocalPosition: {x: -0.081, y: 1, z: -3.581} 372 | m_LocalScale: {x: 1, y: 1, z: 1} 373 | m_Children: 374 | - {fileID: 60569990} 375 | m_Father: {fileID: 0} 376 | m_RootOrder: 6 377 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 378 | --- !u!114 &309556591 379 | MonoBehaviour: 380 | m_ObjectHideFlags: 0 381 | m_PrefabParentObject: {fileID: 0} 382 | m_PrefabInternal: {fileID: 0} 383 | m_GameObject: {fileID: 309556589} 384 | m_Enabled: 1 385 | m_EditorHideFlags: 0 386 | m_Script: {fileID: 11500000, guid: 219c32f0e3512b746b0b978a387b5f9f, type: 3} 387 | m_Name: 388 | m_EditorClassIdentifier: 389 | trackedObject: {fileID: 60569990} 390 | positionMultiplier: 0.000031 391 | rotationMultiplier: 0.011 392 | useLimits: 0 393 | positionX: 394 | Lower: 0 395 | Upper: 0 396 | positionY: 397 | Lower: 0 398 | Upper: 0 399 | positionZ: 400 | Lower: 0 401 | Upper: 0 402 | yawLimits: 403 | Lower: 0 404 | Upper: 0 405 | pitchLimits: 406 | Lower: 0 407 | Upper: 0 408 | rollLimits: 409 | Lower: 0 410 | Upper: 0 411 | isGUIVisible: 1 412 | statusRect: 413 | serializedVersion: 2 414 | x: 10 415 | y: 90 416 | width: 300 417 | height: 200 418 | dataRect: 419 | serializedVersion: 2 420 | x: 10 421 | y: 295 422 | width: 300 423 | height: 200 424 | --- !u!1 &489485837 425 | GameObject: 426 | m_ObjectHideFlags: 0 427 | m_PrefabParentObject: {fileID: 0} 428 | m_PrefabInternal: {fileID: 0} 429 | serializedVersion: 5 430 | m_Component: 431 | - component: {fileID: 489485838} 432 | - component: {fileID: 489485840} 433 | - component: {fileID: 489485839} 434 | m_Layer: 0 435 | m_Name: Sphere 436 | m_TagString: Untagged 437 | m_Icon: {fileID: 0} 438 | m_NavMeshLayer: 0 439 | m_StaticEditorFlags: 0 440 | m_IsActive: 1 441 | --- !u!4 &489485838 442 | Transform: 443 | m_ObjectHideFlags: 0 444 | m_PrefabParentObject: {fileID: 0} 445 | m_PrefabInternal: {fileID: 0} 446 | m_GameObject: {fileID: 489485837} 447 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 448 | m_LocalPosition: {x: 0, y: 0, z: 0} 449 | m_LocalScale: {x: 0.5, y: 0.5, z: 0.5} 450 | m_Children: [] 451 | m_Father: {fileID: 60569990} 452 | m_RootOrder: 0 453 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 454 | --- !u!23 &489485839 455 | MeshRenderer: 456 | m_ObjectHideFlags: 0 457 | m_PrefabParentObject: {fileID: 0} 458 | m_PrefabInternal: {fileID: 0} 459 | m_GameObject: {fileID: 489485837} 460 | m_Enabled: 1 461 | m_CastShadows: 1 462 | m_ReceiveShadows: 1 463 | m_DynamicOccludee: 1 464 | m_MotionVectors: 1 465 | m_LightProbeUsage: 1 466 | m_ReflectionProbeUsage: 1 467 | m_Materials: 468 | - {fileID: 2100000, guid: 94b4dd82a5597da4980bfa40f5714988, type: 2} 469 | m_StaticBatchInfo: 470 | firstSubMesh: 0 471 | subMeshCount: 0 472 | m_StaticBatchRoot: {fileID: 0} 473 | m_ProbeAnchor: {fileID: 0} 474 | m_LightProbeVolumeOverride: {fileID: 0} 475 | m_ScaleInLightmap: 1 476 | m_PreserveUVs: 1 477 | m_IgnoreNormalsForChartDetection: 0 478 | m_ImportantGI: 0 479 | m_StitchLightmapSeams: 0 480 | m_SelectedEditorRenderState: 3 481 | m_MinimumChartSize: 4 482 | m_AutoUVMaxDistance: 0.5 483 | m_AutoUVMaxAngle: 89 484 | m_LightmapParameters: {fileID: 0} 485 | m_SortingLayerID: 0 486 | m_SortingLayer: 0 487 | m_SortingOrder: 0 488 | --- !u!33 &489485840 489 | MeshFilter: 490 | m_ObjectHideFlags: 0 491 | m_PrefabParentObject: {fileID: 0} 492 | m_PrefabInternal: {fileID: 0} 493 | m_GameObject: {fileID: 489485837} 494 | m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} 495 | --- !u!1 &721328396 496 | GameObject: 497 | m_ObjectHideFlags: 0 498 | m_PrefabParentObject: {fileID: 0} 499 | m_PrefabInternal: {fileID: 0} 500 | serializedVersion: 5 501 | m_Component: 502 | - component: {fileID: 721328400} 503 | - component: {fileID: 721328399} 504 | - component: {fileID: 721328398} 505 | - component: {fileID: 721328397} 506 | m_Layer: 0 507 | m_Name: Sphere 508 | m_TagString: Untagged 509 | m_Icon: {fileID: 0} 510 | m_NavMeshLayer: 0 511 | m_StaticEditorFlags: 0 512 | m_IsActive: 1 513 | --- !u!23 &721328397 514 | MeshRenderer: 515 | m_ObjectHideFlags: 0 516 | m_PrefabParentObject: {fileID: 0} 517 | m_PrefabInternal: {fileID: 0} 518 | m_GameObject: {fileID: 721328396} 519 | m_Enabled: 1 520 | m_CastShadows: 1 521 | m_ReceiveShadows: 1 522 | m_DynamicOccludee: 1 523 | m_MotionVectors: 1 524 | m_LightProbeUsage: 1 525 | m_ReflectionProbeUsage: 1 526 | m_Materials: 527 | - {fileID: 2100000, guid: 94b4dd82a5597da4980bfa40f5714988, type: 2} 528 | m_StaticBatchInfo: 529 | firstSubMesh: 0 530 | subMeshCount: 0 531 | m_StaticBatchRoot: {fileID: 0} 532 | m_ProbeAnchor: {fileID: 0} 533 | m_LightProbeVolumeOverride: {fileID: 0} 534 | m_ScaleInLightmap: 1 535 | m_PreserveUVs: 1 536 | m_IgnoreNormalsForChartDetection: 0 537 | m_ImportantGI: 0 538 | m_StitchLightmapSeams: 0 539 | m_SelectedEditorRenderState: 3 540 | m_MinimumChartSize: 4 541 | m_AutoUVMaxDistance: 0.5 542 | m_AutoUVMaxAngle: 89 543 | m_LightmapParameters: {fileID: 0} 544 | m_SortingLayerID: 0 545 | m_SortingLayer: 0 546 | m_SortingOrder: 0 547 | --- !u!135 &721328398 548 | SphereCollider: 549 | m_ObjectHideFlags: 0 550 | m_PrefabParentObject: {fileID: 0} 551 | m_PrefabInternal: {fileID: 0} 552 | m_GameObject: {fileID: 721328396} 553 | m_Material: {fileID: 0} 554 | m_IsTrigger: 0 555 | m_Enabled: 1 556 | serializedVersion: 2 557 | m_Radius: 0.5 558 | m_Center: {x: 0, y: 0, z: 0} 559 | --- !u!33 &721328399 560 | MeshFilter: 561 | m_ObjectHideFlags: 0 562 | m_PrefabParentObject: {fileID: 0} 563 | m_PrefabInternal: {fileID: 0} 564 | m_GameObject: {fileID: 721328396} 565 | m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} 566 | --- !u!4 &721328400 567 | Transform: 568 | m_ObjectHideFlags: 0 569 | m_PrefabParentObject: {fileID: 0} 570 | m_PrefabInternal: {fileID: 0} 571 | m_GameObject: {fileID: 721328396} 572 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 573 | m_LocalPosition: {x: 1, y: 0.5, z: 0} 574 | m_LocalScale: {x: 1, y: 1, z: 1} 575 | m_Children: [] 576 | m_Father: {fileID: 0} 577 | m_RootOrder: 3 578 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 579 | --- !u!1 &828160737 580 | GameObject: 581 | m_ObjectHideFlags: 0 582 | m_PrefabParentObject: {fileID: 0} 583 | m_PrefabInternal: {fileID: 0} 584 | serializedVersion: 5 585 | m_Component: 586 | - component: {fileID: 828160738} 587 | - component: {fileID: 828160741} 588 | - component: {fileID: 828160740} 589 | - component: {fileID: 828160739} 590 | m_Layer: 0 591 | m_Name: Cube 592 | m_TagString: Untagged 593 | m_Icon: {fileID: 0} 594 | m_NavMeshLayer: 0 595 | m_StaticEditorFlags: 0 596 | m_IsActive: 1 597 | --- !u!4 &828160738 598 | Transform: 599 | m_ObjectHideFlags: 0 600 | m_PrefabParentObject: {fileID: 0} 601 | m_PrefabInternal: {fileID: 0} 602 | m_GameObject: {fileID: 828160737} 603 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 604 | m_LocalPosition: {x: 0, y: 0, z: 0.16300002} 605 | m_LocalScale: {x: 0.4, y: 0.20000005, z: 0.20000005} 606 | m_Children: [] 607 | m_Father: {fileID: 60569990} 608 | m_RootOrder: 1 609 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 610 | --- !u!23 &828160739 611 | MeshRenderer: 612 | m_ObjectHideFlags: 0 613 | m_PrefabParentObject: {fileID: 0} 614 | m_PrefabInternal: {fileID: 0} 615 | m_GameObject: {fileID: 828160737} 616 | m_Enabled: 1 617 | m_CastShadows: 1 618 | m_ReceiveShadows: 1 619 | m_DynamicOccludee: 1 620 | m_MotionVectors: 1 621 | m_LightProbeUsage: 1 622 | m_ReflectionProbeUsage: 1 623 | m_Materials: 624 | - {fileID: 2100000, guid: 94b4dd82a5597da4980bfa40f5714988, type: 2} 625 | m_StaticBatchInfo: 626 | firstSubMesh: 0 627 | subMeshCount: 0 628 | m_StaticBatchRoot: {fileID: 0} 629 | m_ProbeAnchor: {fileID: 0} 630 | m_LightProbeVolumeOverride: {fileID: 0} 631 | m_ScaleInLightmap: 1 632 | m_PreserveUVs: 1 633 | m_IgnoreNormalsForChartDetection: 0 634 | m_ImportantGI: 0 635 | m_StitchLightmapSeams: 0 636 | m_SelectedEditorRenderState: 3 637 | m_MinimumChartSize: 4 638 | m_AutoUVMaxDistance: 0.5 639 | m_AutoUVMaxAngle: 89 640 | m_LightmapParameters: {fileID: 0} 641 | m_SortingLayerID: 0 642 | m_SortingLayer: 0 643 | m_SortingOrder: 0 644 | --- !u!65 &828160740 645 | BoxCollider: 646 | m_ObjectHideFlags: 0 647 | m_PrefabParentObject: {fileID: 0} 648 | m_PrefabInternal: {fileID: 0} 649 | m_GameObject: {fileID: 828160737} 650 | m_Material: {fileID: 0} 651 | m_IsTrigger: 0 652 | m_Enabled: 1 653 | serializedVersion: 2 654 | m_Size: {x: 1, y: 1, z: 1} 655 | m_Center: {x: 0, y: 0, z: 0} 656 | --- !u!33 &828160741 657 | MeshFilter: 658 | m_ObjectHideFlags: 0 659 | m_PrefabParentObject: {fileID: 0} 660 | m_PrefabInternal: {fileID: 0} 661 | m_GameObject: {fileID: 828160737} 662 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 663 | --- !u!1 &1593256838 664 | GameObject: 665 | m_ObjectHideFlags: 0 666 | m_PrefabParentObject: {fileID: 0} 667 | m_PrefabInternal: {fileID: 0} 668 | serializedVersion: 5 669 | m_Component: 670 | - component: {fileID: 1593256842} 671 | - component: {fileID: 1593256841} 672 | - component: {fileID: 1593256840} 673 | - component: {fileID: 1593256839} 674 | m_Layer: 0 675 | m_Name: RightCapsule 676 | m_TagString: Untagged 677 | m_Icon: {fileID: 0} 678 | m_NavMeshLayer: 0 679 | m_StaticEditorFlags: 0 680 | m_IsActive: 1 681 | --- !u!23 &1593256839 682 | MeshRenderer: 683 | m_ObjectHideFlags: 0 684 | m_PrefabParentObject: {fileID: 0} 685 | m_PrefabInternal: {fileID: 0} 686 | m_GameObject: {fileID: 1593256838} 687 | m_Enabled: 1 688 | m_CastShadows: 1 689 | m_ReceiveShadows: 1 690 | m_DynamicOccludee: 1 691 | m_MotionVectors: 1 692 | m_LightProbeUsage: 1 693 | m_ReflectionProbeUsage: 1 694 | m_Materials: 695 | - {fileID: 2100000, guid: 94b4dd82a5597da4980bfa40f5714988, type: 2} 696 | m_StaticBatchInfo: 697 | firstSubMesh: 0 698 | subMeshCount: 0 699 | m_StaticBatchRoot: {fileID: 0} 700 | m_ProbeAnchor: {fileID: 0} 701 | m_LightProbeVolumeOverride: {fileID: 0} 702 | m_ScaleInLightmap: 1 703 | m_PreserveUVs: 1 704 | m_IgnoreNormalsForChartDetection: 0 705 | m_ImportantGI: 0 706 | m_StitchLightmapSeams: 0 707 | m_SelectedEditorRenderState: 3 708 | m_MinimumChartSize: 4 709 | m_AutoUVMaxDistance: 0.5 710 | m_AutoUVMaxAngle: 89 711 | m_LightmapParameters: {fileID: 0} 712 | m_SortingLayerID: 0 713 | m_SortingLayer: 0 714 | m_SortingOrder: 0 715 | --- !u!136 &1593256840 716 | CapsuleCollider: 717 | m_ObjectHideFlags: 0 718 | m_PrefabParentObject: {fileID: 0} 719 | m_PrefabInternal: {fileID: 0} 720 | m_GameObject: {fileID: 1593256838} 721 | m_Material: {fileID: 0} 722 | m_IsTrigger: 0 723 | m_Enabled: 1 724 | m_Radius: 0.5 725 | m_Height: 2 726 | m_Direction: 1 727 | m_Center: {x: 0, y: 0, z: 0} 728 | --- !u!33 &1593256841 729 | MeshFilter: 730 | m_ObjectHideFlags: 0 731 | m_PrefabParentObject: {fileID: 0} 732 | m_PrefabInternal: {fileID: 0} 733 | m_GameObject: {fileID: 1593256838} 734 | m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0} 735 | --- !u!4 &1593256842 736 | Transform: 737 | m_ObjectHideFlags: 0 738 | m_PrefabParentObject: {fileID: 0} 739 | m_PrefabInternal: {fileID: 0} 740 | m_GameObject: {fileID: 1593256838} 741 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 742 | m_LocalPosition: {x: 1.279, y: 0.219, z: -3.534} 743 | m_LocalScale: {x: 0.5, y: 0.5, z: 0.5} 744 | m_Children: [] 745 | m_Father: {fileID: 0} 746 | m_RootOrder: 5 747 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 748 | --- !u!1 &1934632801 749 | GameObject: 750 | m_ObjectHideFlags: 0 751 | m_PrefabParentObject: {fileID: 0} 752 | m_PrefabInternal: {fileID: 0} 753 | serializedVersion: 5 754 | m_Component: 755 | - component: {fileID: 1934632805} 756 | - component: {fileID: 1934632804} 757 | - component: {fileID: 1934632803} 758 | - component: {fileID: 1934632802} 759 | m_Layer: 0 760 | m_Name: Plane 761 | m_TagString: Untagged 762 | m_Icon: {fileID: 0} 763 | m_NavMeshLayer: 0 764 | m_StaticEditorFlags: 0 765 | m_IsActive: 1 766 | --- !u!23 &1934632802 767 | MeshRenderer: 768 | m_ObjectHideFlags: 0 769 | m_PrefabParentObject: {fileID: 0} 770 | m_PrefabInternal: {fileID: 0} 771 | m_GameObject: {fileID: 1934632801} 772 | m_Enabled: 1 773 | m_CastShadows: 1 774 | m_ReceiveShadows: 1 775 | m_DynamicOccludee: 1 776 | m_MotionVectors: 1 777 | m_LightProbeUsage: 1 778 | m_ReflectionProbeUsage: 1 779 | m_Materials: 780 | - {fileID: 2100000, guid: d28f02bb2b2fa4149bf6088e60aca35a, type: 2} 781 | m_StaticBatchInfo: 782 | firstSubMesh: 0 783 | subMeshCount: 0 784 | m_StaticBatchRoot: {fileID: 0} 785 | m_ProbeAnchor: {fileID: 0} 786 | m_LightProbeVolumeOverride: {fileID: 0} 787 | m_ScaleInLightmap: 1 788 | m_PreserveUVs: 1 789 | m_IgnoreNormalsForChartDetection: 0 790 | m_ImportantGI: 0 791 | m_StitchLightmapSeams: 0 792 | m_SelectedEditorRenderState: 3 793 | m_MinimumChartSize: 4 794 | m_AutoUVMaxDistance: 0.5 795 | m_AutoUVMaxAngle: 89 796 | m_LightmapParameters: {fileID: 0} 797 | m_SortingLayerID: 0 798 | m_SortingLayer: 0 799 | m_SortingOrder: 0 800 | --- !u!64 &1934632803 801 | MeshCollider: 802 | m_ObjectHideFlags: 0 803 | m_PrefabParentObject: {fileID: 0} 804 | m_PrefabInternal: {fileID: 0} 805 | m_GameObject: {fileID: 1934632801} 806 | m_Material: {fileID: 0} 807 | m_IsTrigger: 0 808 | m_Enabled: 1 809 | serializedVersion: 3 810 | m_Convex: 0 811 | m_CookingOptions: 14 812 | m_SkinWidth: 0.01 813 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 814 | --- !u!33 &1934632804 815 | MeshFilter: 816 | m_ObjectHideFlags: 0 817 | m_PrefabParentObject: {fileID: 0} 818 | m_PrefabInternal: {fileID: 0} 819 | m_GameObject: {fileID: 1934632801} 820 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 821 | --- !u!4 &1934632805 822 | Transform: 823 | m_ObjectHideFlags: 0 824 | m_PrefabParentObject: {fileID: 0} 825 | m_PrefabInternal: {fileID: 0} 826 | m_GameObject: {fileID: 1934632801} 827 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 828 | m_LocalPosition: {x: 0, y: 0, z: 0} 829 | m_LocalScale: {x: 10, y: 1, z: 10} 830 | m_Children: [] 831 | m_Father: {fileID: 0} 832 | m_RootOrder: 1 833 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 834 | --- !u!1 &2071862985 835 | GameObject: 836 | m_ObjectHideFlags: 0 837 | m_PrefabParentObject: {fileID: 0} 838 | m_PrefabInternal: {fileID: 0} 839 | serializedVersion: 5 840 | m_Component: 841 | - component: {fileID: 2071862989} 842 | - component: {fileID: 2071862988} 843 | - component: {fileID: 2071862987} 844 | - component: {fileID: 2071862986} 845 | m_Layer: 0 846 | m_Name: ForwardCapsule 847 | m_TagString: Untagged 848 | m_Icon: {fileID: 0} 849 | m_NavMeshLayer: 0 850 | m_StaticEditorFlags: 0 851 | m_IsActive: 1 852 | --- !u!23 &2071862986 853 | MeshRenderer: 854 | m_ObjectHideFlags: 0 855 | m_PrefabParentObject: {fileID: 0} 856 | m_PrefabInternal: {fileID: 0} 857 | m_GameObject: {fileID: 2071862985} 858 | m_Enabled: 1 859 | m_CastShadows: 1 860 | m_ReceiveShadows: 1 861 | m_DynamicOccludee: 1 862 | m_MotionVectors: 1 863 | m_LightProbeUsage: 1 864 | m_ReflectionProbeUsage: 1 865 | m_Materials: 866 | - {fileID: 2100000, guid: 94b4dd82a5597da4980bfa40f5714988, type: 2} 867 | m_StaticBatchInfo: 868 | firstSubMesh: 0 869 | subMeshCount: 0 870 | m_StaticBatchRoot: {fileID: 0} 871 | m_ProbeAnchor: {fileID: 0} 872 | m_LightProbeVolumeOverride: {fileID: 0} 873 | m_ScaleInLightmap: 1 874 | m_PreserveUVs: 1 875 | m_IgnoreNormalsForChartDetection: 0 876 | m_ImportantGI: 0 877 | m_StitchLightmapSeams: 0 878 | m_SelectedEditorRenderState: 3 879 | m_MinimumChartSize: 4 880 | m_AutoUVMaxDistance: 0.5 881 | m_AutoUVMaxAngle: 89 882 | m_LightmapParameters: {fileID: 0} 883 | m_SortingLayerID: 0 884 | m_SortingLayer: 0 885 | m_SortingOrder: 0 886 | --- !u!136 &2071862987 887 | CapsuleCollider: 888 | m_ObjectHideFlags: 0 889 | m_PrefabParentObject: {fileID: 0} 890 | m_PrefabInternal: {fileID: 0} 891 | m_GameObject: {fileID: 2071862985} 892 | m_Material: {fileID: 0} 893 | m_IsTrigger: 0 894 | m_Enabled: 1 895 | m_Radius: 0.5 896 | m_Height: 2 897 | m_Direction: 1 898 | m_Center: {x: 0, y: 0, z: 0} 899 | --- !u!33 &2071862988 900 | MeshFilter: 901 | m_ObjectHideFlags: 0 902 | m_PrefabParentObject: {fileID: 0} 903 | m_PrefabInternal: {fileID: 0} 904 | m_GameObject: {fileID: 2071862985} 905 | m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0} 906 | --- !u!4 &2071862989 907 | Transform: 908 | m_ObjectHideFlags: 0 909 | m_PrefabParentObject: {fileID: 0} 910 | m_PrefabInternal: {fileID: 0} 911 | m_GameObject: {fileID: 2071862985} 912 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 913 | m_LocalPosition: {x: 0, y: 0.219, z: -2.349} 914 | m_LocalScale: {x: 0.5, y: 0.5, z: 0.5} 915 | m_Children: [] 916 | m_Father: {fileID: 0} 917 | m_RootOrder: 4 918 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 919 | -------------------------------------------------------------------------------- /Assets/TrackIR/Demo/DemoScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a86d7d8e8d8969c4691cb22ecd94c0cf 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TrackIR/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 533a872db32702548ad67d8cddcb4696 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TrackIR/Scripts/TrackIRTransform.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace TrackIRUnity 4 | { 5 | [System.Serializable] 6 | public struct Limit 7 | { 8 | public float Lower; 9 | public float Upper; 10 | } 11 | 12 | public class TrackIRTransform : MonoBehaviour 13 | { 14 | [Tooltip("Transform for which to apply the TrackIR position and rotation. All tracking will be done " + 15 | "relative to the ")] 16 | public Transform trackedObject = null; 17 | 18 | [Space] 19 | [Tooltip("Multiplier to apply to the raw TrackIR position data. Default value has been calibrated to " + 20 | "approximate the numbers in the \"Game Column\" as seen in the TrackIR application.")] 21 | public float positionMultiplier = 0.000031f; 22 | 23 | [Tooltip("Multiplier to apply to the raw TrackIR rotation data. Default value has been calibrated to " + 24 | "approximate the numbers in the \"Game Column\" as seen in the TrackIR application.")] 25 | public float rotationMultiplier = 0.011f; 26 | 27 | [Header("Limits")] 28 | [Tooltip("Use the limits specified below put constraints on rotation and position.")] 29 | public bool useLimits = false; 30 | public Limit positionX = new Limit(); 31 | public Limit positionY = new Limit(); 32 | public Limit positionZ = new Limit(); 33 | public Limit yawLimits = new Limit(); 34 | public Limit pitchLimits = new Limit(); 35 | public Limit rollLimits = new Limit(); 36 | 37 | [Header("Debugging")] 38 | [Tooltip("Show the debug buttons for starting/stopping tracking and various debug texts.")] 39 | public bool isGUIVisible = true; 40 | [Tooltip("Rect to draw the debug text in.")] 41 | public Rect statusRect = new Rect(10, 90, 300, 200); 42 | [Tooltip("Rect to draw the debug text in.")] 43 | public Rect dataRect = new Rect(10, 295, 300, 200); 44 | 45 | private static TrackIRClient trackIRclient = null; 46 | 47 | private string status = ""; 48 | private string data = ""; 49 | 50 | private static bool isRunning = false; 51 | 52 | private Vector3 startPosition = Vector3.zero; 53 | private Quaternion startRotation = Quaternion.identity; 54 | 55 | public bool IsRunning { get { return enabled && isRunning; } } 56 | 57 | private void Awake() 58 | { 59 | // Create a static instance of the TrackerIR Client to get data from 60 | if (trackIRclient == null) 61 | trackIRclient = new TrackIRClient(); 62 | 63 | status = ""; 64 | data = ""; 65 | } 66 | 67 | private void OnEnable() 68 | { 69 | StartTracking(); 70 | } 71 | 72 | private void OnDisable() 73 | { 74 | StopTracking(); 75 | } 76 | 77 | // Update is called once per frame 78 | private void Update() 79 | { 80 | if (isRunning) 81 | { 82 | // Data for debugging output, can be removed if not debugging/testing 83 | data = trackIRclient.client_TestTrackIRData(); 84 | 85 | // Data for head tracking 86 | TrackIRClient.LPTRACKIRDATA tid = trackIRclient.client_HandleTrackIRData(); 87 | 88 | Vector3 localPos = trackedObject.localPosition; 89 | Vector3 localEulers = trackedObject.localRotation.eulerAngles; 90 | 91 | if (!useLimits) 92 | { 93 | localPos.x = -tid.fNPX * positionMultiplier; 94 | localPos.y = tid.fNPY * positionMultiplier; 95 | localPos.z = -tid.fNPZ * positionMultiplier; 96 | 97 | localEulers.y = -tid.fNPYaw * rotationMultiplier; 98 | localEulers.x = tid.fNPPitch * rotationMultiplier; 99 | localEulers.z = tid.fNPRoll * rotationMultiplier; 100 | } 101 | else 102 | { 103 | localPos.x = Mathf.Clamp(-tid.fNPX * positionMultiplier, positionX.Lower, positionX.Upper); 104 | localPos.y = Mathf.Clamp(tid.fNPY * positionMultiplier, positionY.Lower, positionY.Upper); 105 | localPos.z = Mathf.Clamp(-tid.fNPZ * positionMultiplier, positionZ.Lower, positionZ.Upper); 106 | 107 | localEulers.y = Mathf.Clamp(-tid.fNPYaw * rotationMultiplier, yawLimits.Lower, yawLimits.Upper); 108 | localEulers.x = Mathf.Clamp(tid.fNPPitch * rotationMultiplier, pitchLimits.Lower, pitchLimits.Upper); 109 | localEulers.z = Mathf.Clamp(tid.fNPRoll * rotationMultiplier, rollLimits.Lower, rollLimits.Upper); 110 | } 111 | 112 | trackedObject.localRotation = Quaternion.Euler(localEulers) * startRotation; 113 | trackedObject.localPosition = startPosition + localPos; 114 | } 115 | } 116 | 117 | private void OnGUI() 118 | { 119 | if (isGUIVisible) 120 | { 121 | // Testing GUI 122 | if (GUI.Button(new Rect(10, 10, 100, 25), "Start")) 123 | StartTracking(); 124 | if (GUI.Button(new Rect(10, 35, 100, 25), "Shutdown")) 125 | StopTracking(); 126 | if (GUI.Button(new Rect(10, 60, 100, 25), "Reset")) 127 | ResetTracking(); 128 | 129 | GUI.TextArea(statusRect, status); 130 | GUI.TextArea(dataRect, data); 131 | } 132 | } 133 | 134 | public void ResetTracking() 135 | { 136 | StopTracking(); 137 | StartTracking(); 138 | } 139 | 140 | public void StartTracking() 141 | { 142 | if (trackIRclient == null) 143 | { 144 | Debug.Log(name = "No TrackIR client found."); 145 | return; 146 | } 147 | 148 | if (trackedObject == null) 149 | { 150 | Debug.LogError(name + ": Attempted to start TrackIR tracking without an assigned Tracked Object"); 151 | return; 152 | } 153 | 154 | if (!isRunning) 155 | { 156 | try 157 | { 158 | // Start tracking 159 | status = trackIRclient.TrackIR_Enhanced_Init(); 160 | isRunning = status != null; 161 | 162 | startPosition = trackedObject.localPosition; 163 | startRotation = trackedObject.localRotation; 164 | } 165 | catch 166 | { 167 | // The DLL will throw an exception if it fails to initialize. This is the only 168 | // way to tell if the user has TrackIR installed or not. 169 | Debug.Log("No TrackIR client found."); 170 | } 171 | } 172 | } 173 | 174 | public void StopTracking() 175 | { 176 | if (isRunning) 177 | { 178 | // Stop tracking 179 | status = trackIRclient.TrackIR_Shutdown(); 180 | isRunning = false; 181 | 182 | trackedObject.localPosition = startPosition; 183 | trackedObject.localRotation = startRotation; 184 | } 185 | } 186 | } 187 | } 188 | -------------------------------------------------------------------------------- /Assets/TrackIR/Scripts/TrackIRTransform.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 219c32f0e3512b746b0b978a387b5f9f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 1 23 | m_ClothInterCollisionSettingsToggle: 0 24 | m_ContactPairsMode: 0 25 | m_BroadphaseType: 0 26 | m_WorldBounds: 27 | m_Center: {x: 0, y: 0, z: 0} 28 | m_Extent: {x: 250, y: 250, z: 250} 29 | m_WorldSubdivisions: 8 30 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/TrackIR/Demo/DemoScene.unity 10 | guid: a86d7d8e8d8969c4691cb22ecd94c0cf 11 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_SpritePackerMode: 0 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 40 | m_PreloadedShaders: [] 41 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 42 | type: 0} 43 | m_CustomRenderPipeline: {fileID: 0} 44 | m_TransparencySortMode: 0 45 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 46 | m_DefaultRenderingPath: 1 47 | m_DefaultMobileRenderingPath: 1 48 | m_TierSettings: [] 49 | m_LightmapStripping: 0 50 | m_FogStripping: 0 51 | m_InstancingStripping: 0 52 | m_LightmapKeepPlain: 1 53 | m_LightmapKeepDirCombined: 1 54 | m_LightmapKeepDynamicPlain: 1 55 | m_LightmapKeepDynamicDirCombined: 1 56 | m_LightmapKeepShadowMask: 1 57 | m_LightmapKeepSubtractive: 1 58 | m_FogKeepLinear: 1 59 | m_FogKeepExp: 1 60 | m_FogKeepExp2: 1 61 | m_AlbedoSwatchInfos: [] 62 | m_LightsUseLinearIntensity: 0 63 | m_LightsUseColorTemperature: 0 64 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_AutoSyncTransforms: 1 28 | m_AlwaysShowColliders: 0 29 | m_ShowColliderSleep: 1 30 | m_ShowColliderContacts: 0 31 | m_ShowColliderAABB: 0 32 | m_ContactArrowScale: 0.2 33 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 34 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 35 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 36 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 37 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 38 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 15 7 | productGUID: 63edd6d4e3f55b74a88f5cccd438dea0 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | defaultScreenOrientation: 4 11 | targetDevice: 2 12 | useOnDemandResources: 0 13 | accelerometerFrequency: 60 14 | companyName: DefaultCompany 15 | productName: Unity-TrackIR-Plugin 16 | defaultCursor: {fileID: 0} 17 | cursorHotspot: {x: 0, y: 0} 18 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 19 | m_ShowUnitySplashScreen: 1 20 | m_ShowUnitySplashLogo: 1 21 | m_SplashScreenOverlayOpacity: 1 22 | m_SplashScreenAnimation: 1 23 | m_SplashScreenLogoStyle: 1 24 | m_SplashScreenDrawMode: 0 25 | m_SplashScreenBackgroundAnimationZoom: 1 26 | m_SplashScreenLogoAnimationZoom: 1 27 | m_SplashScreenBackgroundLandscapeAspect: 1 28 | m_SplashScreenBackgroundPortraitAspect: 1 29 | m_SplashScreenBackgroundLandscapeUvs: 30 | serializedVersion: 2 31 | x: 0 32 | y: 0 33 | width: 1 34 | height: 1 35 | m_SplashScreenBackgroundPortraitUvs: 36 | serializedVersion: 2 37 | x: 0 38 | y: 0 39 | width: 1 40 | height: 1 41 | m_SplashScreenLogos: [] 42 | m_VirtualRealitySplashScreen: {fileID: 0} 43 | m_HolographicTrackingLossScreen: {fileID: 0} 44 | defaultScreenWidth: 1024 45 | defaultScreenHeight: 768 46 | defaultScreenWidthWeb: 960 47 | defaultScreenHeightWeb: 600 48 | m_StereoRenderingPath: 0 49 | m_ActiveColorSpace: 1 50 | m_MTRendering: 1 51 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 52 | iosShowActivityIndicatorOnLoading: -1 53 | androidShowActivityIndicatorOnLoading: -1 54 | tizenShowActivityIndicatorOnLoading: -1 55 | displayResolutionDialog: 1 56 | iosAppInBackgroundBehavior: 0 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidBlitType: 0 67 | defaultIsFullScreen: 1 68 | defaultIsNativeResolution: 1 69 | macRetinaSupport: 1 70 | runInBackground: 0 71 | captureSingleScreen: 0 72 | muteOtherAudioSources: 0 73 | Prepare IOS For Recording: 0 74 | Force IOS Speakers When Recording: 0 75 | deferSystemGesturesMode: 0 76 | hideHomeButton: 0 77 | submitAnalytics: 1 78 | usePlayerLog: 1 79 | bakeCollisionMeshes: 0 80 | forceSingleInstance: 0 81 | resizableWindow: 0 82 | useMacAppStoreValidation: 0 83 | macAppStoreCategory: public.app-category.games 84 | gpuSkinning: 0 85 | graphicsJobs: 0 86 | xboxPIXTextureCapture: 0 87 | xboxEnableAvatar: 0 88 | xboxEnableKinect: 0 89 | xboxEnableKinectAutoTracking: 0 90 | xboxEnableFitness: 0 91 | visibleInBackground: 1 92 | allowFullscreenSwitch: 1 93 | graphicsJobMode: 0 94 | macFullscreenMode: 2 95 | d3d11FullscreenMode: 1 96 | xboxSpeechDB: 0 97 | xboxEnableHeadOrientation: 0 98 | xboxEnableGuest: 0 99 | xboxEnablePIXSampling: 0 100 | metalFramebufferOnly: 0 101 | n3dsDisableStereoscopicView: 0 102 | n3dsEnableSharedListOpt: 1 103 | n3dsEnableVSync: 0 104 | xboxOneResolution: 0 105 | xboxOneSResolution: 0 106 | xboxOneXResolution: 3 107 | xboxOneMonoLoggingLevel: 0 108 | xboxOneLoggingLevel: 1 109 | xboxOneDisableEsram: 0 110 | xboxOnePresentImmediateThreshold: 0 111 | videoMemoryForVertexBuffers: 0 112 | psp2PowerMode: 0 113 | psp2AcquireBGM: 1 114 | wiiUTVResolution: 0 115 | wiiUGamePadMSAA: 1 116 | wiiUSupportsNunchuk: 0 117 | wiiUSupportsClassicController: 0 118 | wiiUSupportsBalanceBoard: 0 119 | wiiUSupportsMotionPlus: 0 120 | wiiUSupportsProController: 0 121 | wiiUAllowScreenCapture: 1 122 | wiiUControllerCount: 0 123 | m_SupportedAspectRatios: 124 | 4:3: 1 125 | 5:4: 1 126 | 16:10: 1 127 | 16:9: 1 128 | Others: 1 129 | bundleVersion: 1.0 130 | preloadedAssets: [] 131 | metroInputSource: 0 132 | wsaTransparentSwapchain: 0 133 | m_HolographicPauseOnTrackingLoss: 1 134 | xboxOneDisableKinectGpuReservation: 0 135 | xboxOneEnable7thCore: 0 136 | vrSettings: 137 | cardboard: 138 | depthFormat: 0 139 | enableTransitionView: 0 140 | daydream: 141 | depthFormat: 0 142 | useSustainedPerformanceMode: 0 143 | enableVideoLayer: 0 144 | useProtectedVideoMemory: 0 145 | minimumSupportedHeadTracking: 0 146 | maximumSupportedHeadTracking: 1 147 | hololens: 148 | depthFormat: 1 149 | depthBufferSharingEnabled: 0 150 | oculus: 151 | sharedDepthBuffer: 0 152 | dashSupport: 0 153 | v2Signing: 0 154 | protectGraphicsMemory: 0 155 | useHDRDisplay: 0 156 | m_ColorGamuts: 00000000 157 | targetPixelDensity: 30 158 | resolutionScalingMode: 0 159 | androidSupportedAspectRatio: 1 160 | androidMaxAspectRatio: 2.1 161 | applicationIdentifier: {} 162 | buildNumber: {} 163 | AndroidBundleVersionCode: 1 164 | AndroidMinSdkVersion: 16 165 | AndroidTargetSdkVersion: 0 166 | AndroidPreferredInstallLocation: 1 167 | aotOptions: 168 | stripEngineCode: 1 169 | iPhoneStrippingLevel: 0 170 | iPhoneScriptCallOptimization: 0 171 | ForceInternetPermission: 0 172 | ForceSDCardPermission: 0 173 | CreateWallpaper: 0 174 | APKExpansionFiles: 0 175 | keepLoadedShadersAlive: 0 176 | StripUnusedMeshComponents: 0 177 | VertexChannelCompressionMask: 178 | serializedVersion: 2 179 | m_Bits: 238 180 | iPhoneSdkVersion: 988 181 | iOSTargetOSVersionString: 7.0 182 | tvOSSdkVersion: 0 183 | tvOSRequireExtendedGameController: 0 184 | tvOSTargetOSVersionString: 9.0 185 | uIPrerenderedIcon: 0 186 | uIRequiresPersistentWiFi: 0 187 | uIRequiresFullScreen: 1 188 | uIStatusBarHidden: 1 189 | uIExitOnSuspend: 0 190 | uIStatusBarStyle: 0 191 | iPhoneSplashScreen: {fileID: 0} 192 | iPhoneHighResSplashScreen: {fileID: 0} 193 | iPhoneTallHighResSplashScreen: {fileID: 0} 194 | iPhone47inSplashScreen: {fileID: 0} 195 | iPhone55inPortraitSplashScreen: {fileID: 0} 196 | iPhone55inLandscapeSplashScreen: {fileID: 0} 197 | iPhone58inPortraitSplashScreen: {fileID: 0} 198 | iPhone58inLandscapeSplashScreen: {fileID: 0} 199 | iPadPortraitSplashScreen: {fileID: 0} 200 | iPadHighResPortraitSplashScreen: {fileID: 0} 201 | iPadLandscapeSplashScreen: {fileID: 0} 202 | iPadHighResLandscapeSplashScreen: {fileID: 0} 203 | appleTVSplashScreen: {fileID: 0} 204 | appleTVSplashScreen2x: {fileID: 0} 205 | tvOSSmallIconLayers: [] 206 | tvOSSmallIconLayers2x: [] 207 | tvOSLargeIconLayers: [] 208 | tvOSTopShelfImageLayers: [] 209 | tvOSTopShelfImageLayers2x: [] 210 | tvOSTopShelfImageWideLayers: [] 211 | tvOSTopShelfImageWideLayers2x: [] 212 | iOSLaunchScreenType: 0 213 | iOSLaunchScreenPortrait: {fileID: 0} 214 | iOSLaunchScreenLandscape: {fileID: 0} 215 | iOSLaunchScreenBackgroundColor: 216 | serializedVersion: 2 217 | rgba: 0 218 | iOSLaunchScreenFillPct: 100 219 | iOSLaunchScreenSize: 100 220 | iOSLaunchScreenCustomXibPath: 221 | iOSLaunchScreeniPadType: 0 222 | iOSLaunchScreeniPadImage: {fileID: 0} 223 | iOSLaunchScreeniPadBackgroundColor: 224 | serializedVersion: 2 225 | rgba: 0 226 | iOSLaunchScreeniPadFillPct: 100 227 | iOSLaunchScreeniPadSize: 100 228 | iOSLaunchScreeniPadCustomXibPath: 229 | iOSUseLaunchScreenStoryboard: 0 230 | iOSLaunchScreenCustomStoryboardPath: 231 | iOSDeviceRequirements: [] 232 | iOSURLSchemes: [] 233 | iOSBackgroundModes: 0 234 | iOSMetalForceHardShadows: 0 235 | metalEditorSupport: 1 236 | metalAPIValidation: 1 237 | iOSRenderExtraFrameOnPause: 0 238 | appleDeveloperTeamID: 239 | iOSManualSigningProvisioningProfileID: 240 | tvOSManualSigningProvisioningProfileID: 241 | appleEnableAutomaticSigning: 0 242 | clonedFromGUID: 00000000000000000000000000000000 243 | AndroidTargetArchitectures: 5 244 | AndroidSplashScreenScale: 0 245 | androidSplashScreen: {fileID: 0} 246 | AndroidKeystoreName: 247 | AndroidKeyaliasName: 248 | AndroidTVCompatibility: 1 249 | AndroidIsGame: 1 250 | AndroidEnableTango: 0 251 | androidEnableBanner: 1 252 | androidUseLowAccuracyLocation: 0 253 | m_AndroidBanners: 254 | - width: 320 255 | height: 180 256 | banner: {fileID: 0} 257 | androidGamepadSupportLevel: 0 258 | resolutionDialogBanner: {fileID: 0} 259 | m_BuildTargetIcons: [] 260 | m_BuildTargetBatching: [] 261 | m_BuildTargetGraphicsAPIs: [] 262 | m_BuildTargetVRSettings: [] 263 | m_BuildTargetEnableVuforiaSettings: [] 264 | openGLRequireES31: 0 265 | openGLRequireES31AEP: 0 266 | m_TemplateCustomTags: {} 267 | mobileMTRendering: 268 | Android: 1 269 | iPhone: 1 270 | tvOS: 1 271 | m_BuildTargetGroupLightmapEncodingQuality: [] 272 | wiiUTitleID: 0005000011000000 273 | wiiUGroupID: 00010000 274 | wiiUCommonSaveSize: 4096 275 | wiiUAccountSaveSize: 2048 276 | wiiUOlvAccessKey: 0 277 | wiiUTinCode: 0 278 | wiiUJoinGameId: 0 279 | wiiUJoinGameModeMask: 0000000000000000 280 | wiiUCommonBossSize: 0 281 | wiiUAccountBossSize: 0 282 | wiiUAddOnUniqueIDs: [] 283 | wiiUMainThreadStackSize: 3072 284 | wiiULoaderThreadStackSize: 1024 285 | wiiUSystemHeapSize: 128 286 | wiiUTVStartupScreen: {fileID: 0} 287 | wiiUGamePadStartupScreen: {fileID: 0} 288 | wiiUDrcBufferDisabled: 0 289 | wiiUProfilerLibPath: 290 | playModeTestRunnerEnabled: 0 291 | actionOnDotNetUnhandledException: 1 292 | enableInternalProfiler: 0 293 | logObjCUncaughtExceptions: 1 294 | enableCrashReportAPI: 0 295 | cameraUsageDescription: 296 | locationUsageDescription: 297 | microphoneUsageDescription: 298 | switchNetLibKey: 299 | switchSocketMemoryPoolSize: 6144 300 | switchSocketAllocatorPoolSize: 128 301 | switchSocketConcurrencyLimit: 14 302 | switchScreenResolutionBehavior: 2 303 | switchUseCPUProfiler: 0 304 | switchApplicationID: 0x01004b9000490000 305 | switchNSODependencies: 306 | switchTitleNames_0: 307 | switchTitleNames_1: 308 | switchTitleNames_2: 309 | switchTitleNames_3: 310 | switchTitleNames_4: 311 | switchTitleNames_5: 312 | switchTitleNames_6: 313 | switchTitleNames_7: 314 | switchTitleNames_8: 315 | switchTitleNames_9: 316 | switchTitleNames_10: 317 | switchTitleNames_11: 318 | switchTitleNames_12: 319 | switchTitleNames_13: 320 | switchTitleNames_14: 321 | switchPublisherNames_0: 322 | switchPublisherNames_1: 323 | switchPublisherNames_2: 324 | switchPublisherNames_3: 325 | switchPublisherNames_4: 326 | switchPublisherNames_5: 327 | switchPublisherNames_6: 328 | switchPublisherNames_7: 329 | switchPublisherNames_8: 330 | switchPublisherNames_9: 331 | switchPublisherNames_10: 332 | switchPublisherNames_11: 333 | switchPublisherNames_12: 334 | switchPublisherNames_13: 335 | switchPublisherNames_14: 336 | switchIcons_0: {fileID: 0} 337 | switchIcons_1: {fileID: 0} 338 | switchIcons_2: {fileID: 0} 339 | switchIcons_3: {fileID: 0} 340 | switchIcons_4: {fileID: 0} 341 | switchIcons_5: {fileID: 0} 342 | switchIcons_6: {fileID: 0} 343 | switchIcons_7: {fileID: 0} 344 | switchIcons_8: {fileID: 0} 345 | switchIcons_9: {fileID: 0} 346 | switchIcons_10: {fileID: 0} 347 | switchIcons_11: {fileID: 0} 348 | switchIcons_12: {fileID: 0} 349 | switchIcons_13: {fileID: 0} 350 | switchIcons_14: {fileID: 0} 351 | switchSmallIcons_0: {fileID: 0} 352 | switchSmallIcons_1: {fileID: 0} 353 | switchSmallIcons_2: {fileID: 0} 354 | switchSmallIcons_3: {fileID: 0} 355 | switchSmallIcons_4: {fileID: 0} 356 | switchSmallIcons_5: {fileID: 0} 357 | switchSmallIcons_6: {fileID: 0} 358 | switchSmallIcons_7: {fileID: 0} 359 | switchSmallIcons_8: {fileID: 0} 360 | switchSmallIcons_9: {fileID: 0} 361 | switchSmallIcons_10: {fileID: 0} 362 | switchSmallIcons_11: {fileID: 0} 363 | switchSmallIcons_12: {fileID: 0} 364 | switchSmallIcons_13: {fileID: 0} 365 | switchSmallIcons_14: {fileID: 0} 366 | switchManualHTML: 367 | switchAccessibleURLs: 368 | switchLegalInformation: 369 | switchMainThreadStackSize: 1048576 370 | switchPresenceGroupId: 371 | switchLogoHandling: 0 372 | switchReleaseVersion: 0 373 | switchDisplayVersion: 1.0.0 374 | switchStartupUserAccount: 0 375 | switchTouchScreenUsage: 0 376 | switchSupportedLanguagesMask: 0 377 | switchLogoType: 0 378 | switchApplicationErrorCodeCategory: 379 | switchUserAccountSaveDataSize: 0 380 | switchUserAccountSaveDataJournalSize: 0 381 | switchApplicationAttribute: 0 382 | switchCardSpecSize: -1 383 | switchCardSpecClock: -1 384 | switchRatingsMask: 0 385 | switchRatingsInt_0: 0 386 | switchRatingsInt_1: 0 387 | switchRatingsInt_2: 0 388 | switchRatingsInt_3: 0 389 | switchRatingsInt_4: 0 390 | switchRatingsInt_5: 0 391 | switchRatingsInt_6: 0 392 | switchRatingsInt_7: 0 393 | switchRatingsInt_8: 0 394 | switchRatingsInt_9: 0 395 | switchRatingsInt_10: 0 396 | switchRatingsInt_11: 0 397 | switchRatingsInt_12: 0 398 | switchLocalCommunicationIds_0: 399 | switchLocalCommunicationIds_1: 400 | switchLocalCommunicationIds_2: 401 | switchLocalCommunicationIds_3: 402 | switchLocalCommunicationIds_4: 403 | switchLocalCommunicationIds_5: 404 | switchLocalCommunicationIds_6: 405 | switchLocalCommunicationIds_7: 406 | switchParentalControl: 0 407 | switchAllowsScreenshot: 1 408 | switchAllowsVideoCapturing: 1 409 | switchAllowsRuntimeAddOnContentInstall: 0 410 | switchDataLossConfirmation: 0 411 | switchUserAccountLockEnabled: 0 412 | switchSupportedNpadStyles: 3 413 | switchSocketConfigEnabled: 0 414 | switchTcpInitialSendBufferSize: 32 415 | switchTcpInitialReceiveBufferSize: 64 416 | switchTcpAutoSendBufferSizeMax: 256 417 | switchTcpAutoReceiveBufferSizeMax: 256 418 | switchUdpSendBufferSize: 9 419 | switchUdpReceiveBufferSize: 42 420 | switchSocketBufferEfficiency: 4 421 | switchSocketInitializeEnabled: 1 422 | switchNetworkInterfaceManagerInitializeEnabled: 1 423 | switchPlayerConnectionEnabled: 1 424 | ps4NPAgeRating: 12 425 | ps4NPTitleSecret: 426 | ps4NPTrophyPackPath: 427 | ps4ParentalLevel: 11 428 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 429 | ps4Category: 0 430 | ps4MasterVersion: 01.00 431 | ps4AppVersion: 01.00 432 | ps4AppType: 0 433 | ps4ParamSfxPath: 434 | ps4VideoOutPixelFormat: 0 435 | ps4VideoOutInitialWidth: 1920 436 | ps4VideoOutBaseModeInitialWidth: 1920 437 | ps4VideoOutReprojectionRate: 60 438 | ps4PronunciationXMLPath: 439 | ps4PronunciationSIGPath: 440 | ps4BackgroundImagePath: 441 | ps4StartupImagePath: 442 | ps4StartupImagesFolder: 443 | ps4IconImagesFolder: 444 | ps4SaveDataImagePath: 445 | ps4SdkOverride: 446 | ps4BGMPath: 447 | ps4ShareFilePath: 448 | ps4ShareOverlayImagePath: 449 | ps4PrivacyGuardImagePath: 450 | ps4NPtitleDatPath: 451 | ps4RemotePlayKeyAssignment: -1 452 | ps4RemotePlayKeyMappingDir: 453 | ps4PlayTogetherPlayerCount: 0 454 | ps4EnterButtonAssignment: 1 455 | ps4ApplicationParam1: 0 456 | ps4ApplicationParam2: 0 457 | ps4ApplicationParam3: 0 458 | ps4ApplicationParam4: 0 459 | ps4DownloadDataSize: 0 460 | ps4GarlicHeapSize: 2048 461 | ps4ProGarlicHeapSize: 2560 462 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 463 | ps4pnSessions: 1 464 | ps4pnPresence: 1 465 | ps4pnFriends: 1 466 | ps4pnGameCustomData: 1 467 | playerPrefsSupport: 0 468 | restrictedAudioUsageRights: 0 469 | ps4UseResolutionFallback: 0 470 | ps4ReprojectionSupport: 0 471 | ps4UseAudio3dBackend: 0 472 | ps4SocialScreenEnabled: 0 473 | ps4ScriptOptimizationLevel: 0 474 | ps4Audio3dVirtualSpeakerCount: 14 475 | ps4attribCpuUsage: 0 476 | ps4PatchPkgPath: 477 | ps4PatchLatestPkgPath: 478 | ps4PatchChangeinfoPath: 479 | ps4PatchDayOne: 0 480 | ps4attribUserManagement: 0 481 | ps4attribMoveSupport: 0 482 | ps4attrib3DSupport: 0 483 | ps4attribShareSupport: 0 484 | ps4attribExclusiveVR: 0 485 | ps4disableAutoHideSplash: 0 486 | ps4videoRecordingFeaturesUsed: 0 487 | ps4contentSearchFeaturesUsed: 0 488 | ps4attribEyeToEyeDistanceSettingVR: 0 489 | ps4IncludedModules: [] 490 | monoEnv: 491 | psp2Splashimage: {fileID: 0} 492 | psp2NPTrophyPackPath: 493 | psp2NPSupportGBMorGJP: 0 494 | psp2NPAgeRating: 12 495 | psp2NPTitleDatPath: 496 | psp2NPCommsID: 497 | psp2NPCommunicationsID: 498 | psp2NPCommsPassphrase: 499 | psp2NPCommsSig: 500 | psp2ParamSfxPath: 501 | psp2ManualPath: 502 | psp2LiveAreaGatePath: 503 | psp2LiveAreaBackroundPath: 504 | psp2LiveAreaPath: 505 | psp2LiveAreaTrialPath: 506 | psp2PatchChangeInfoPath: 507 | psp2PatchOriginalPackage: 508 | psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui 509 | psp2KeystoneFile: 510 | psp2MemoryExpansionMode: 0 511 | psp2DRMType: 0 512 | psp2StorageType: 0 513 | psp2MediaCapacity: 0 514 | psp2DLCConfigPath: 515 | psp2ThumbnailPath: 516 | psp2BackgroundPath: 517 | psp2SoundPath: 518 | psp2TrophyCommId: 519 | psp2TrophyPackagePath: 520 | psp2PackagedResourcesPath: 521 | psp2SaveDataQuota: 10240 522 | psp2ParentalLevel: 1 523 | psp2ShortTitle: Not Set 524 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 525 | psp2Category: 0 526 | psp2MasterVersion: 01.00 527 | psp2AppVersion: 01.00 528 | psp2TVBootMode: 0 529 | psp2EnterButtonAssignment: 2 530 | psp2TVDisableEmu: 0 531 | psp2AllowTwitterDialog: 1 532 | psp2Upgradable: 0 533 | psp2HealthWarning: 0 534 | psp2UseLibLocation: 0 535 | psp2InfoBarOnStartup: 0 536 | psp2InfoBarColor: 0 537 | psp2ScriptOptimizationLevel: 0 538 | psmSplashimage: {fileID: 0} 539 | splashScreenBackgroundSourceLandscape: {fileID: 0} 540 | splashScreenBackgroundSourcePortrait: {fileID: 0} 541 | spritePackerPolicy: 542 | webGLMemorySize: 256 543 | webGLExceptionSupport: 1 544 | webGLNameFilesAsHashes: 0 545 | webGLDataCaching: 0 546 | webGLDebugSymbols: 0 547 | webGLEmscriptenArgs: 548 | webGLModulesDirectory: 549 | webGLTemplate: APPLICATION:Default 550 | webGLAnalyzeBuildSize: 0 551 | webGLUseEmbeddedResources: 0 552 | webGLUseWasm: 0 553 | webGLCompressionFormat: 1 554 | scriptingDefineSymbols: {} 555 | platformArchitecture: {} 556 | scriptingBackend: {} 557 | incrementalIl2cppBuild: {} 558 | additionalIl2CppArgs: 559 | scriptingRuntimeVersion: 0 560 | apiCompatibilityLevelPerPlatform: {} 561 | m_RenderingPath: 1 562 | m_MobileRenderingPath: 1 563 | metroPackageName: Unity-TrackIR-Plugin 564 | metroPackageVersion: 565 | metroCertificatePath: 566 | metroCertificatePassword: 567 | metroCertificateSubject: 568 | metroCertificateIssuer: 569 | metroCertificateNotAfter: 0000000000000000 570 | metroApplicationDescription: Unity-TrackIR-Plugin 571 | wsaImages: {} 572 | metroTileShortName: 573 | metroCommandLineArgsFile: 574 | metroTileShowName: 0 575 | metroMediumTileShowName: 0 576 | metroLargeTileShowName: 0 577 | metroWideTileShowName: 0 578 | metroDefaultTileSize: 1 579 | metroTileForegroundText: 2 580 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 581 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 582 | a: 1} 583 | metroSplashScreenUseBackgroundColor: 0 584 | platformCapabilities: {} 585 | metroFTAName: 586 | metroFTAFileTypes: [] 587 | metroProtocolName: 588 | metroCompilationOverrides: 1 589 | tizenProductDescription: 590 | tizenProductURL: 591 | tizenSigningProfileName: 592 | tizenGPSPermissions: 0 593 | tizenMicrophonePermissions: 0 594 | tizenDeploymentTarget: 595 | tizenDeploymentTargetType: -1 596 | tizenMinOSVersion: 1 597 | n3dsUseExtSaveData: 0 598 | n3dsCompressStaticMem: 1 599 | n3dsExtSaveDataNumber: 0x12345 600 | n3dsStackSize: 131072 601 | n3dsTargetPlatform: 2 602 | n3dsRegion: 7 603 | n3dsMediaSize: 0 604 | n3dsLogoStyle: 3 605 | n3dsTitle: GameName 606 | n3dsProductCode: 607 | n3dsApplicationId: 0xFF3FF 608 | XboxOneProductId: 609 | XboxOneUpdateKey: 610 | XboxOneSandboxId: 611 | XboxOneContentId: 612 | XboxOneTitleId: 613 | XboxOneSCId: 614 | XboxOneGameOsOverridePath: 615 | XboxOnePackagingOverridePath: 616 | XboxOneAppManifestOverridePath: 617 | XboxOnePackageEncryption: 0 618 | XboxOnePackageUpdateGranularity: 2 619 | XboxOneDescription: 620 | XboxOneLanguage: 621 | - enus 622 | XboxOneCapability: [] 623 | XboxOneGameRating: {} 624 | XboxOneIsContentPackage: 0 625 | XboxOneEnableGPUVariability: 0 626 | XboxOneSockets: {} 627 | XboxOneSplashScreen: {fileID: 0} 628 | XboxOneAllowedProductIds: [] 629 | XboxOnePersistentLocalStorageSize: 0 630 | XboxOneXTitleMemory: 8 631 | xboxOneScriptCompiler: 0 632 | vrEditorSettings: 633 | daydream: 634 | daydreamIconForeground: {fileID: 0} 635 | daydreamIconBackground: {fileID: 0} 636 | cloudServicesEnabled: {} 637 | facebookSdkVersion: 7.9.4 638 | apiCompatibilityLevel: 2 639 | cloudProjectId: 640 | projectName: 641 | organizationId: 642 | cloudEnabled: 0 643 | enableNativePlatformBackendsForNewInputSystem: 0 644 | disableOldInputManagerSupport: 0 645 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2017.4.37f1 2 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 4 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Low 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 3 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 4 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 1 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 3 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 1 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 1 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 4 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 2 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 3 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 1 108 | antiAliasing: 0 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 1 112 | billboardsFaceCameraPosition: 1 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 4 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 2 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 70 129 | shadowNearPlaneOffset: 3 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 2 136 | antiAliasing: 2 137 | softParticles: 1 138 | softVegetation: 1 139 | realtimeReflectionProbes: 1 140 | billboardsFaceCameraPosition: 1 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 4 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 4 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSM: 5 183 | PSP2: 2 184 | Standalone: 5 185 | Tizen: 2 186 | WebGL: 3 187 | WiiU: 5 188 | Windows Store Apps: 5 189 | XboxOne: 5 190 | iPhone: 2 191 | tvOS: 2 192 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 1 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate 14 | m_Enabled: 0 15 | m_CaptureEditorExceptions: 1 16 | UnityPurchasingSettings: 17 | m_Enabled: 0 18 | m_TestMode: 0 19 | UnityAnalyticsSettings: 20 | m_Enabled: 0 21 | m_InitializeOnStartup: 1 22 | m_TestMode: 0 23 | m_TestEventUrl: 24 | m_TestConfigUrl: 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # This repository is obsolete! 2 | As of February 2024, TrackIR now offers an official and first party SDK Unity plugin that works quite well. It's missing some small conviences and a simple way to do angle/position limits, but it's easy to add that in if you start from their base. Most importantly though, the official SDK doesn't require the kinda hacky DLL that this repository is built around. 3 | 4 | This repository will be kept up for archival's sake, but **I don't recommend using this repository's plugin**. The original plugin is about a decade old as of this writing (February 2024), and was always technically in a weird legal gray area because this plugin being "okay" was based mostly on an official forum post like 10 years ago. 5 | 6 | [To get the official TrackIR Unity SDK, click this link!](https://www.trackir.com/developers) NaturalPoint also [provides a nice Quick Start guide](https://docs.trackir.com/trackir-sdk/unity-quick-start). The guide plus the new SDK makes adding the basic TrackIR support pretty trivial! 7 | 8 | # Unity TrackIR Plugin v1.3 9 | 10 | ![Demo scene](Screenshots/DemoTracking.gif) 11 | 12 | As I started to integrate the old Track IR plugin code into a small test project, I ended up re-writing a lot how it interfaces with Unity. This new version includes a bunch of quality of fixes and re-organizes the code into something that more closely matches how Unity code is written today. 13 | 14 | The original code is quite old and was built for Unity 2.6! 15 | 16 | The TrackIR plugin [was originally written by Tobias Boogh](https://github.com/byBrick/Unity-TrackIR-Plugin), and [updated by Chris Reed](https://github.com/chrisreedio/Unity-TrackIR-Plugin/tree/x86_64) with 64 bit binaries required for recent versions of Unity. All I've done is modernize it and make it easier to use. 17 | 18 | This project was built in **Unity 2017.4.37f1** 19 | 20 | ## Download 21 | 22 | You can either clone the repository or [download the asset package](https://github.com/brihernandez/Unity-TrackIR-Plugin/raw/master/TrackIRTransform.unitypackage) located in the root. 23 | 24 | ## How it works 25 | 26 | ![The tracking component](Screenshots/Component.png) 27 | 28 | The `TrackIRTransform` component takes raw input from TrackIR, and then modifies the assigned `Tracked Object` to mirror those inputs in **local space**. All inputs are also offset from wherever the object already was in local space, so you can have an object at some position, E.g. (0, 1, 3) with a rotation of (30, 0, 0) and all movement/rotation will be done relative to those offsets. 29 | 30 | The default values for the `Position Multiplier` and `Rotation Multiplier` are magic numbers that I've found to make the Unity results match 1:1 what the TrackIR application reports the results *should* be. I've left them configurable either way in case it they need to be adjusted. 31 | 32 | Behind the scenes, these values are multipliers to the raw hardware values that TrackIR puts out. 33 | 34 | ## Usage 35 | 36 | ![Third person](Screenshots/ThirdPerson.gif) 37 | 38 | Tracking will start automatically, but can be enabled or disabled at runtime using either the `StartTracking()` and `StopTracking()` functions, or by enabling/disabling the component itself. The latter should be negligibly more performant since it won't be running an `Update()` loop that isn't doing anything while disabled, but the methods are otherwise identical. 39 | 40 | I've also included a simple `ResetTracking()` utility function because sometimes I forget to start up TrackIR and it's always annoyed me that most games need to be completely restarted for TIR to work in that situation. 41 | 42 | ![Hierarchy](Screenshots/Hierarchy.png) 43 | 44 | This is typical hierarchy I would use for a tracked camera, with the `TrackIRTransform` component on the "TrackIR" object, and the "Main Camera" set as the `Tracked Object`. Depending on how you plan to use your cameras, you might be able get away with not having that root component, but the important thing to remember is that all rotation and movement is handled in local space. Without that root object, the camera rotation will work correctly only if local rotation is straight forward. 45 | 46 | Optional clamps on position and rotation can be applied by checking the `Use Limits` box. 47 | 48 | ## Changelog 49 | 50 | ### 1.3 (Jan 23 2021) 51 | 52 | - Protection against trying to create multiple TrackIR clients 53 | - Protection against trying to run on machines without TrackIR installed 54 | - More correct handling of rotations for cameras with nonzero start rotations 55 | 56 | ### 1.2 (Apr 6 2020) 57 | 58 | - Moved the TrackIRTransform component into the same namespace as the TrackIR plugin code (TrackIRUnity) 59 | 60 | ### 1.1 (Apr 3 2020) 61 | 62 | - Fixed crash when TrackIR is not detected at all 63 | 64 | ### 1.0 (Apr 2 2020) 65 | 66 | - Released 67 | -------------------------------------------------------------------------------- /Screenshots/Component.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brihernandez/Unity-TrackIR-Plugin/bf62af03e1bb24e3451dbe9ac5955766055a3429/Screenshots/Component.png -------------------------------------------------------------------------------- /Screenshots/DemoTracking.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brihernandez/Unity-TrackIR-Plugin/bf62af03e1bb24e3451dbe9ac5955766055a3429/Screenshots/DemoTracking.gif -------------------------------------------------------------------------------- /Screenshots/Hierarchy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brihernandez/Unity-TrackIR-Plugin/bf62af03e1bb24e3451dbe9ac5955766055a3429/Screenshots/Hierarchy.png -------------------------------------------------------------------------------- /Screenshots/ThirdPerson.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brihernandez/Unity-TrackIR-Plugin/bf62af03e1bb24e3451dbe9ac5955766055a3429/Screenshots/ThirdPerson.gif -------------------------------------------------------------------------------- /TrackIRTransform.unitypackage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brihernandez/Unity-TrackIR-Plugin/bf62af03e1bb24e3451dbe9ac5955766055a3429/TrackIRTransform.unitypackage --------------------------------------------------------------------------------