Fixed unit tests
This commit is contained in:
parent
27afc9d501
commit
d7c2f3b960
@ -673,23 +673,22 @@ namespace Passer.Humanoid {
|
||||
|
||||
protected virtual bool GrabRigidbodyParenting(Rigidbody objRigidbody) {
|
||||
GameObject obj = objRigidbody.gameObject;
|
||||
if (handRigidbody == null) {
|
||||
if (handRigidbody == null)
|
||||
Debug.LogError("Hand no longer has a rigidbody...");
|
||||
}
|
||||
|
||||
RigidbodyDisabled.ParentRigidbody(handRigidbody, objRigidbody);
|
||||
if (handRigidbody != null)
|
||||
handRigidbody.mass = objRigidbody.mass;
|
||||
|
||||
|
||||
HumanoidNetworking.DisableNetworkSync(objRigidbody.gameObject);
|
||||
if (!humanoid.isRemote)
|
||||
HumanoidNetworking.TakeOwnership(objRigidbody.gameObject);
|
||||
|
||||
if (Application.isPlaying)
|
||||
Object.Destroy(objRigidbody);
|
||||
else
|
||||
Object.DestroyImmediate(objRigidbody, true);
|
||||
RigidbodyDisabled.ParentRigidbody(handRigidbody, objRigidbody);
|
||||
|
||||
//if (Application.isPlaying)
|
||||
// Object.Destroy(objRigidbody);
|
||||
//else
|
||||
// Object.DestroyImmediate(objRigidbody, true);
|
||||
grabbedObject = obj;
|
||||
|
||||
return true;
|
||||
@ -853,8 +852,10 @@ namespace Passer.Humanoid {
|
||||
}
|
||||
//grabbedRigidbody.centerOfMass = handTarget.storedCOM;
|
||||
|
||||
grabbedRigidbody.velocity = handRigidbody.velocity;
|
||||
grabbedRigidbody.angularVelocity = handRigidbody.angularVelocity;
|
||||
if (grabbedRigidbody.isKinematic == false) {
|
||||
grabbedRigidbody.velocity = handRigidbody.velocity;
|
||||
grabbedRigidbody.angularVelocity = handRigidbody.angularVelocity;
|
||||
}
|
||||
|
||||
if (grabbedHandle != null)
|
||||
LetGoHandle(grabbedHandle);
|
||||
|
8
Runtime/HumanoidControl/Scripts/Resources/Models.meta
Normal file
8
Runtime/HumanoidControl/Scripts/Resources/Models.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6abcb3631639c01478d992ecbd8dc39a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ee731481bc8b0c949a45ebf8fa2144a7
|
||||
folderAsset: yes
|
||||
timeCreated: 1486644078
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,76 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: No Name
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _EMISSION
|
||||
m_LightmapFlags: 1
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a85626db694b4b64aa5b9f475236c885
|
||||
timeCreated: 1486644078
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -87,7 +87,7 @@ namespace Passer {
|
||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode(startScene, new LoadSceneParameters(LoadSceneMode.Additive));
|
||||
currentSite = new HistoryEntry() {
|
||||
siteName = "directload",
|
||||
siteLocation = "passervr.com/sites/start",
|
||||
siteLocation = "serrarens.nl/sites/start",
|
||||
scenePath = "",
|
||||
assetBundle = currentAssetBundle,
|
||||
};
|
||||
@ -248,7 +248,7 @@ namespace Passer {
|
||||
|
||||
UnityEngine.UI.Text text = dialogObj.AddComponent<UnityEngine.UI.Text>();
|
||||
text.text = dialogText;
|
||||
text.font = Resources.GetBuiltinResource<Font>("Arial.ttf");
|
||||
text.font = Resources.GetBuiltinResource<Font>("LegacyRuntime.ttf");
|
||||
text.resizeTextForBestFit = true;
|
||||
text.alignment = TextAnchor.MiddleCenter;
|
||||
|
||||
|
8
Samples~.meta
Normal file
8
Samples~.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5839d837476eba44da4cf96d22142f50
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,83 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: caucasian-male-young
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 278c00b683cc457458bf8db9ba698239, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 00d8e91da1464b845adca1425e9599d7
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,85 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: classicshoes_texture_black
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _ALPHAPREMULTIPLY_ON
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: 3000
|
||||
stringTagMap:
|
||||
RenderType: Transparent
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 15f9cf581a5a2254aa6edfdfbe4bd52d, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 10
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 3
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 0
|
||||
m_Colors:
|
||||
- _Color: {r: 0.1, g: 0.1, b: 0.1, a: 0.9}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 86a0d07d2ba985e4ba3112712f20d380
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,85 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: jeans_texture
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _ALPHAPREMULTIPLY_ON
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: 3000
|
||||
stringTagMap:
|
||||
RenderType: Transparent
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 150de288aed9a7c4ba456c9450b98189, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 10
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 3
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 0
|
||||
m_Colors:
|
||||
- _Color: {r: 0.0426, g: 0.0557, b: 0.2079, a: 0.9574}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cad73e08b9f208a4a8f3ab6f6d4510dd
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,85 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: texture
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _ALPHAPREMULTIPLY_ON
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: 3000
|
||||
stringTagMap:
|
||||
RenderType: Transparent
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 10
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 3
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 0
|
||||
m_Colors:
|
||||
- _Color: {r: 0.8, g: 0.54, b: 0.35, a: 0.19999999}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a10d9d6b54f516042a24a6251f4b08b0
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,85 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: tshirt_longsleeves_medium_texture
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _ALPHAPREMULTIPLY_ON
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: 3000
|
||||
stringTagMap:
|
||||
RenderType: Transparent
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 10
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 3
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 0
|
||||
m_Colors:
|
||||
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 0.19999999}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d738943a74c8fa245b6b54a59ae6b72d
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
83
Samples~/GroceryStore/Models/Materials/292.mat
Normal file
83
Samples~/GroceryStore/Models/Materials/292.mat
Normal file
@ -0,0 +1,83 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: 292
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
8
Samples~/GroceryStore/Models/Materials/292.mat.meta
Normal file
8
Samples~/GroceryStore/Models/Materials/292.mat.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 74962581d4fb15f4bbbe5afa898ccb31
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
83
Samples~/GroceryStore/Models/Materials/Bruidsuikers.mat
Normal file
83
Samples~/GroceryStore/Models/Materials/Bruidsuikers.mat
Normal file
@ -0,0 +1,83 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Bruidsuikers
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: b4b9d5940a482db4987ccf4b3fa47fed, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a4bcc9e4b3581bf47b18aa0b2b283e76
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
83
Samples~/GroceryStore/Models/Materials/HopjesEtiket.mat
Normal file
83
Samples~/GroceryStore/Models/Materials/HopjesEtiket.mat
Normal file
@ -0,0 +1,83 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: HopjesEtiket
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 8f6c9d8dffa083b4995cf06c16e932fb, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6d76c0e4651be4d4e849acd0e450bedb
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
83
Samples~/GroceryStore/Models/Materials/Mastersword.mat
Normal file
83
Samples~/GroceryStore/Models/Materials/Mastersword.mat
Normal file
@ -0,0 +1,83 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Mastersword
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 63f1540a1bfc3f04c9298d3335d2598c
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
83
Samples~/GroceryStore/Models/Materials/Metal_Rough.mat
Normal file
83
Samples~/GroceryStore/Models/Materials/Metal_Rough.mat
Normal file
@ -0,0 +1,83 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Metal_Rough
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: a308f430732a0554f96ffbff3bbf4856, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 74a910ad018ea804db5435e02cf85927
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,83 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Stoel-2-SUDCColor006
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 0.3372549, g: 0.3372549, b: 0.3372549, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a7a7c3fa88187a846912d00153f48d28
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,83 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Wood_Cherry_Original
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: b3b3cec6cdccc554d800b01c8c3dbebd, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 31f3e185fc9568b4fbed81fff446e742
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!850595691 &4890085278179872738
|
||||
LightingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Grocery Store NetworkingSettings
|
||||
serializedVersion: 6
|
||||
m_GIWorkflowMode: 1
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_RealtimeEnvironmentLighting: 1
|
||||
m_BounceScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_UsingShadowmask: 0
|
||||
m_BakeBackend: 0
|
||||
m_LightmapMaxSize: 1024
|
||||
m_BakeResolution: 50
|
||||
m_Padding: 2
|
||||
m_LightmapCompression: 0
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 0
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAO: 0
|
||||
m_MixedBakeMode: 1
|
||||
m_LightmapsBakeMode: 1
|
||||
m_FilterMode: 1
|
||||
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_RealtimeResolution: 1
|
||||
m_ForceWhiteAlbedo: 0
|
||||
m_ForceUpdates: 0
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_FinalGatherFiltering: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVREnvironmentSampleCount: 512
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_PVRBounces: 2
|
||||
m_PVRMinBounces: 2
|
||||
m_PVREnvironmentImportanceSampling: 0
|
||||
m_PVRFilteringMode: 0
|
||||
m_PVRDenoiserTypeDirect: 0
|
||||
m_PVRDenoiserTypeIndirect: 0
|
||||
m_PVRDenoiserTypeAO: 0
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_PVRTiledBaking: 0
|
||||
m_NumRaysToShootPerTexel: -1
|
||||
m_RespectSceneVisibilityWhenBakingGI: 0
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 360497dd1bdaa874cbc44ba70ff5f50f
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 4890085278179872738
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,66 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!850595691 &4890085278179872738
|
||||
LightingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: GroceryStoreSettings
|
||||
serializedVersion: 6
|
||||
m_GIWorkflowMode: 1
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_RealtimeEnvironmentLighting: 1
|
||||
m_BounceScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_UsingShadowmask: 0
|
||||
m_BakeBackend: 0
|
||||
m_LightmapMaxSize: 1024
|
||||
m_BakeResolution: 50
|
||||
m_Padding: 2
|
||||
m_LightmapCompression: 0
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 0
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAO: 0
|
||||
m_MixedBakeMode: 1
|
||||
m_LightmapsBakeMode: 1
|
||||
m_FilterMode: 1
|
||||
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_RealtimeResolution: 1
|
||||
m_ForceWhiteAlbedo: 0
|
||||
m_ForceUpdates: 0
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_FinalGatherFiltering: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVREnvironmentSampleCount: 512
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_PVRBounces: 2
|
||||
m_PVRMinBounces: 2
|
||||
m_PVREnvironmentImportanceSampling: 0
|
||||
m_PVRFilteringMode: 0
|
||||
m_PVRDenoiserTypeDirect: 0
|
||||
m_PVRDenoiserTypeIndirect: 0
|
||||
m_PVRDenoiserTypeAO: 0
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_PVRTiledBaking: 0
|
||||
m_NumRaysToShootPerTexel: -1
|
||||
m_RespectSceneVisibilityWhenBakingGI: 0
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 40a362fc60d5cd044b8c2dbacd78c53c
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 4890085278179872738
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
66
Samples~/VisitorsAndSites/Sites/ObjectTableSettings.lighting
Normal file
66
Samples~/VisitorsAndSites/Sites/ObjectTableSettings.lighting
Normal file
@ -0,0 +1,66 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!850595691 &4890085278179872738
|
||||
LightingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: ObjectTableSettings
|
||||
serializedVersion: 6
|
||||
m_GIWorkflowMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_RealtimeEnvironmentLighting: 1
|
||||
m_BounceScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_UsingShadowmask: 0
|
||||
m_BakeBackend: 0
|
||||
m_LightmapMaxSize: 1024
|
||||
m_BakeResolution: 40
|
||||
m_Padding: 2
|
||||
m_LightmapCompression: 3
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAO: 0
|
||||
m_MixedBakeMode: 1
|
||||
m_LightmapsBakeMode: 1
|
||||
m_FilterMode: 1
|
||||
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_RealtimeResolution: 2
|
||||
m_ForceWhiteAlbedo: 0
|
||||
m_ForceUpdates: 0
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 256
|
||||
m_FinalGatherFiltering: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVREnvironmentSampleCount: 512
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_PVRBounces: 2
|
||||
m_PVRMinBounces: 2
|
||||
m_PVREnvironmentImportanceSampling: 0
|
||||
m_PVRFilteringMode: 0
|
||||
m_PVRDenoiserTypeDirect: 0
|
||||
m_PVRDenoiserTypeIndirect: 0
|
||||
m_PVRDenoiserTypeAO: 0
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_PVRTiledBaking: 0
|
||||
m_NumRaysToShootPerTexel: -1
|
||||
m_RespectSceneVisibilityWhenBakingGI: 0
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bf01e426f6f583d4a9c31f0f38e1f606
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 4890085278179872738
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,44 +1,49 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.TestTools;
|
||||
|
||||
#if pHUMANOID4
|
||||
using NUnit.Framework;
|
||||
using Passer;
|
||||
|
||||
namespace Passer {
|
||||
using Pawn;
|
||||
using Humanoid;
|
||||
|
||||
public class GrabbingTest : IPrebuildSetup {
|
||||
|
||||
public void Setup() {
|
||||
UnityEditor.SceneManagement.EditorSceneManager.OpenScene("[Test]GrabbingHumanoid.unity");
|
||||
string testSceneName = "[Test]GrabbingHumanoid.unity";
|
||||
string[] files = Directory.GetFiles(Application.dataPath, testSceneName, SearchOption.AllDirectories);
|
||||
if (files.Length == 1) {
|
||||
// strip dataPath
|
||||
string file = files[0].Substring(Application.dataPath.Length - 6);
|
||||
UnityEditor.SceneManagement.EditorSceneManager.OpenScene(file);
|
||||
}
|
||||
else
|
||||
Debug.LogError($"Could not find test scene {testSceneName}");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Rigidbody() {
|
||||
// Can be grabbed on any place on the mesh.
|
||||
try {
|
||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||
|
||||
GameObject obj = GameObject.Find("CubeRigidbody");
|
||||
Assert.IsFalse(obj == null);
|
||||
GameObject obj = GameObject.Find("CubeRigidbody");
|
||||
Assert.IsFalse(obj == null);
|
||||
|
||||
#region Grab
|
||||
GameObject grabbedObject = Grab(humanoid, obj);
|
||||
Assert.AreEqual(grabbedObject, obj, "Object is not grabbed");
|
||||
#endregion
|
||||
#region Grab
|
||||
|
||||
#region LetGo
|
||||
grabbedObject = LetGo(humanoid);
|
||||
Assert.IsTrue(grabbedObject == null, "Object is not released");
|
||||
#endregion
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||
Assert.AreEqual(grabbedObject, obj, "Object is not grabbed");
|
||||
|
||||
#endregion
|
||||
|
||||
#region LetGo
|
||||
|
||||
grabbedObject = LetGo(humanoid);
|
||||
Assert.IsTrue(grabbedObject == null, "Object is not released");
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -55,7 +60,7 @@ namespace Passer {
|
||||
|
||||
#region Grab
|
||||
|
||||
GameObject grabbedObject = Grab(humanoid, obj);
|
||||
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||
Assert.AreEqual(grabbedObject, obj);
|
||||
|
||||
#endregion
|
||||
@ -74,144 +79,118 @@ namespace Passer {
|
||||
[Test]
|
||||
public void KinematicRigidbodyWithoutPhysics() {
|
||||
// the controller holds the Rigidbody.
|
||||
try {
|
||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||
humanoid.leftHandTarget.physics = false;
|
||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||
humanoid.leftHandTarget.physics = false;
|
||||
|
||||
GameObject obj = GameObject.Find("KinematicCube");
|
||||
Assert.IsFalse(obj == null);
|
||||
GameObject obj = GameObject.Find("KinematicCube");
|
||||
Assert.IsFalse(obj == null);
|
||||
|
||||
#region Grab
|
||||
GameObject grabbedObject = Grab(humanoid, obj);
|
||||
Assert.AreEqual(grabbedObject, obj);
|
||||
#endregion
|
||||
#region Grab
|
||||
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||
Assert.AreEqual(grabbedObject, obj);
|
||||
#endregion
|
||||
|
||||
#region LetGo
|
||||
grabbedObject = LetGo(humanoid);
|
||||
Assert.IsTrue(grabbedObject == null);
|
||||
#endregion
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
#region LetGo
|
||||
grabbedObject = LetGo(humanoid);
|
||||
Assert.IsTrue(grabbedObject == null);
|
||||
#endregion
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void KinematicRigidbodyWithPhysics() {
|
||||
// the Rigidbody will move the controller.
|
||||
try {
|
||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||
humanoid.leftHandTarget.physics = true;
|
||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||
humanoid.leftHandTarget.physics = true;
|
||||
|
||||
GameObject obj = GameObject.Find("KinematicCube");
|
||||
Assert.IsFalse(obj == null);
|
||||
GameObject obj = GameObject.Find("KinematicCube");
|
||||
Assert.IsFalse(obj == null);
|
||||
|
||||
#region Grab
|
||||
GameObject grabbedObject = Grab(humanoid, obj);
|
||||
Assert.AreEqual(grabbedObject, obj);
|
||||
#endregion
|
||||
#region Grab
|
||||
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||
Assert.AreEqual(grabbedObject, obj);
|
||||
#endregion
|
||||
|
||||
#region LetGo
|
||||
grabbedObject = LetGo(humanoid);
|
||||
Assert.IsTrue(grabbedObject == null);
|
||||
#endregion
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
#region LetGo
|
||||
grabbedObject = LetGo(humanoid);
|
||||
Assert.IsTrue(grabbedObject == null);
|
||||
#endregion
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void KinematicRigidbodyLimitations() {
|
||||
// the Rigidbody will move the controller.
|
||||
try {
|
||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||
|
||||
GameObject obj = GameObject.Find("KinematicCubeLimitations");
|
||||
Assert.IsFalse(obj == null);
|
||||
GameObject obj = GameObject.Find("MechanicalJointCube");
|
||||
Assert.IsFalse(obj == null);
|
||||
|
||||
#region Grab
|
||||
GameObject grabbedObject = Grab(humanoid, obj);
|
||||
Assert.AreEqual(grabbedObject, obj);
|
||||
#endregion
|
||||
#region Grab
|
||||
|
||||
#region LetGo
|
||||
grabbedObject = LetGo(humanoid);
|
||||
Assert.IsTrue(grabbedObject == null);
|
||||
#endregion
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||
Assert.AreEqual(grabbedObject, obj);
|
||||
|
||||
#endregion
|
||||
|
||||
#region LetGo
|
||||
|
||||
grabbedObject = LetGo(humanoid);
|
||||
Assert.IsTrue(grabbedObject == null);
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void StaticObject() {
|
||||
// Static object can not be grabbed
|
||||
try {
|
||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||
|
||||
GameObject obj = GameObject.Find("StaticCube");
|
||||
Assert.IsFalse(obj == null);
|
||||
GameObject obj = GameObject.Find("StaticCube");
|
||||
Assert.IsFalse(obj == null);
|
||||
|
||||
#region Grab
|
||||
GameObject grabbedObject = Grab(humanoid, obj);
|
||||
Assert.IsTrue(grabbedObject == null);
|
||||
#endregion
|
||||
#region Grab
|
||||
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||
Assert.IsTrue(grabbedObject == null);
|
||||
#endregion
|
||||
|
||||
#region LetGo
|
||||
grabbedObject = LetGo(humanoid);
|
||||
Assert.IsTrue(grabbedObject == null);
|
||||
#endregion
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
#region LetGo
|
||||
grabbedObject = LetGo(humanoid);
|
||||
Assert.IsTrue(grabbedObject == null);
|
||||
#endregion
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void StaticObjectHandle() {
|
||||
// Can be grabbed but cannot move.
|
||||
// When Body Pull is enabled, the position of the pawn will move.
|
||||
try {
|
||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||
|
||||
GameObject obj = GameObject.Find("StaticCubeWithHandle");
|
||||
Assert.IsFalse(obj == null);
|
||||
GameObject obj = GameObject.Find("StaticCubeWithHandle");
|
||||
Assert.IsFalse(obj == null);
|
||||
|
||||
Handle handle = obj.GetComponentInChildren<Handle>();
|
||||
Assert.IsFalse(handle == null);
|
||||
Handle handle = obj.GetComponentInChildren<Handle>();
|
||||
Assert.IsFalse(handle == null);
|
||||
|
||||
#region Grab
|
||||
GameObject grabbedObject = Grab(humanoid, obj);
|
||||
Assert.AreEqual(grabbedObject, handle.gameObject);
|
||||
#endregion
|
||||
#region Grab
|
||||
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||
Assert.AreEqual(grabbedObject, handle.gameObject);
|
||||
#endregion
|
||||
|
||||
#region LetGo
|
||||
grabbedObject = LetGo(humanoid);
|
||||
Assert.IsTrue(grabbedObject == null);
|
||||
#endregion
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
#region LetGo
|
||||
grabbedObject = LetGo(humanoid);
|
||||
Assert.IsTrue(grabbedObject == null);
|
||||
#endregion
|
||||
}
|
||||
|
||||
#region Utilities
|
||||
|
||||
protected GameObject Grab(HumanoidControl humanoid, GameObject obj) {
|
||||
humanoid.leftHandTarget.Grab(obj);
|
||||
return humanoid.leftHandTarget.grabbedObject;
|
||||
protected GameObject Grab(HumanoidControl humanoid, GameObject obj, bool rangeCheck = true) {
|
||||
humanoid.leftHandTarget.Grab(obj, rangeCheck);
|
||||
return humanoid.leftHandTarget.grabbedObject;
|
||||
}
|
||||
|
||||
protected GameObject LetGo(HumanoidControl humanoid) {
|
||||
humanoid.leftHandTarget.LetGo();
|
||||
return humanoid.leftHandTarget.grabbedObject;
|
||||
humanoid.leftHandTarget.LetGo();
|
||||
return humanoid.leftHandTarget.grabbedObject;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
66
Tests/Editor/Humanoid/HumanoidControlTestSettings.lighting
Normal file
66
Tests/Editor/Humanoid/HumanoidControlTestSettings.lighting
Normal file
@ -0,0 +1,66 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!850595691 &4890085278179872738
|
||||
LightingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: HumanoidControlTestSettings
|
||||
serializedVersion: 6
|
||||
m_GIWorkflowMode: 1
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_RealtimeEnvironmentLighting: 1
|
||||
m_BounceScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_UsingShadowmask: 0
|
||||
m_BakeBackend: 0
|
||||
m_LightmapMaxSize: 1024
|
||||
m_BakeResolution: 40
|
||||
m_Padding: 2
|
||||
m_LightmapCompression: 3
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAO: 0
|
||||
m_MixedBakeMode: 1
|
||||
m_LightmapsBakeMode: 1
|
||||
m_FilterMode: 1
|
||||
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_RealtimeResolution: 2
|
||||
m_ForceWhiteAlbedo: 0
|
||||
m_ForceUpdates: 0
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 256
|
||||
m_FinalGatherFiltering: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVREnvironmentSampleCount: 512
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_PVRBounces: 2
|
||||
m_PVRMinBounces: 2
|
||||
m_PVREnvironmentImportanceSampling: 0
|
||||
m_PVRFilteringMode: 0
|
||||
m_PVRDenoiserTypeDirect: 0
|
||||
m_PVRDenoiserTypeIndirect: 0
|
||||
m_PVRDenoiserTypeAO: 0
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_PVRTiledBaking: 0
|
||||
m_NumRaysToShootPerTexel: -1
|
||||
m_RespectSceneVisibilityWhenBakingGI: 0
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 568f76e06cc66a740a2bec6e81f79476
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 4890085278179872738
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.TestTools;
|
||||
|
||||
@ -9,12 +10,16 @@ namespace Passer {
|
||||
|
||||
public class SocketTest : IPrebuildSetup {
|
||||
|
||||
public static string testScene = "Sockets";
|
||||
|
||||
public void Setup() {
|
||||
Debug.Log("Setup SocketTest");
|
||||
UnityEditor.SceneManagement.EditorSceneManager.OpenScene(
|
||||
"Assets/_TestCases/[Test]" + testScene + ".unity");
|
||||
string testSceneName = "[Test]Sockets.unity";
|
||||
string[] files = Directory.GetFiles(Application.dataPath, testSceneName, SearchOption.AllDirectories);
|
||||
if (files.Length == 1) {
|
||||
// strip dataPath
|
||||
string file = files[0].Substring(Application.dataPath.Length - 6);
|
||||
UnityEditor.SceneManagement.EditorSceneManager.OpenScene(file);
|
||||
}
|
||||
else
|
||||
Debug.LogError($"Could not find test scene {testSceneName}");
|
||||
}
|
||||
|
||||
#region Static Socket
|
||||
@ -22,162 +27,142 @@ namespace Passer {
|
||||
[Category("Socket")]
|
||||
public void StaticSocket_RigidbodyHandle() {
|
||||
// Rigidbody handles will get a fixed joint without attachedRigidbody
|
||||
try {
|
||||
GameObject socketObj = GameObject.Find("StaticSocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsFalse(socket == null);
|
||||
|
||||
GameObject socketObj = GameObject.Find("StaticSocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsFalse(socket == null);
|
||||
GameObject handleObj = GameObject.Find("RigidbodyHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsFalse(handle == null);
|
||||
|
||||
GameObject handleObj = GameObject.Find("RigidbodyHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsFalse(handle == null);
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
Joint joint = handle.GetComponent<Joint>();
|
||||
Assert.IsTrue(joint != null);
|
||||
|
||||
Joint joint = handle.GetComponent<Joint>();
|
||||
Assert.IsTrue(joint != null);
|
||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
||||
|
||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
||||
// Handle should be at socket position
|
||||
float distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
// Socket should not have moved
|
||||
distance = Vector3.Distance(socketPosition, socket.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
|
||||
// Handle should be at socket position
|
||||
float distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
// Socket should not have moved
|
||||
distance = Vector3.Distance(socketPosition, socket.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
#region Release
|
||||
socket.Release();
|
||||
|
||||
#region Release
|
||||
socket.Release();
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
||||
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
||||
|
||||
// Handle should still be at socket position
|
||||
distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
// Handle should still be at socket position
|
||||
distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category("Socket")]
|
||||
public void StaticSocket_StaticHandle() {
|
||||
// Static Handles cannot be attached to static sockets
|
||||
try {
|
||||
GameObject socketObj = GameObject.Find("StaticSocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsTrue(socket != null);
|
||||
GameObject socketObj = GameObject.Find("StaticSocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsTrue(socket != null);
|
||||
|
||||
GameObject handleObj = GameObject.Find("StaticHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsTrue(handle != null);
|
||||
GameObject handleObj = GameObject.Find("StaticHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsTrue(handle != null);
|
||||
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
|
||||
// Handle should not have moved
|
||||
float distance = Vector3.Distance(handle.transform.position, handlePosition);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
// Socket should not have moved
|
||||
distance = Vector3.Distance(socket.transform.position, socketPosition);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
// Handle should not have moved
|
||||
float distance = Vector3.Distance(handle.transform.position, handlePosition);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
// Socket should not have moved
|
||||
distance = Vector3.Distance(socket.transform.position, socketPosition);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
|
||||
#region Release
|
||||
socket.Release();
|
||||
#region Release
|
||||
socket.Release();
|
||||
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
|
||||
// Handle should not have moved
|
||||
Assert.Less(Vector3.Distance(handle.transform.position, handlePosition), 0.0001F);
|
||||
// Socket should not have moved
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, socketPosition), 0.0001F);
|
||||
// Handle should not have moved
|
||||
Assert.Less(Vector3.Distance(handle.transform.position, handlePosition), 0.0001F);
|
||||
// Socket should not have moved
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, socketPosition), 0.0001F);
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category("Socket")]
|
||||
public void StaticSocket_KinematicHandle() {
|
||||
// Kinematic Handles should be parented to the socket
|
||||
try {
|
||||
GameObject socketObj = GameObject.Find("StaticSocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
GameObject socketObj = GameObject.Find("StaticSocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
|
||||
Assert.IsTrue(socket != null);
|
||||
Assert.IsTrue(socket != null);
|
||||
|
||||
GameObject handleObj = GameObject.Find("KinematicHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsTrue(handle != null);
|
||||
GameObject handleObj = GameObject.Find("KinematicHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsTrue(handle != null);
|
||||
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
|
||||
Assert.IsTrue(socket.attachedTransform != null);
|
||||
Assert.AreEqual(handle.transform.parent, socket.transform);
|
||||
Assert.IsTrue(socket.attachedTransform != null);
|
||||
Assert.AreEqual(handle.transform.parent, socket.transform);
|
||||
|
||||
// Handle should be at socket position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
// Socket should not have moved
|
||||
Assert.Less(Vector3.Distance(socketPosition, socket.transform.position), 0.0001F);
|
||||
#endregion
|
||||
// Handle should be at socket position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
// Socket should not have moved
|
||||
Assert.Less(Vector3.Distance(socketPosition, socket.transform.position), 0.0001F);
|
||||
#endregion
|
||||
|
||||
#region Release
|
||||
socket.Release();
|
||||
#region Release
|
||||
socket.Release();
|
||||
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreEqual(handle.transform.parent, handleParent);
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreEqual(handle.transform.parent, handleParent);
|
||||
|
||||
// Handle should still be at socket position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
#endregion
|
||||
// Handle should still be at socket position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
#endregion
|
||||
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
#endregion
|
||||
|
||||
@ -186,161 +171,143 @@ namespace Passer {
|
||||
[Category("Socket")]
|
||||
public void RigidbodySocket_RigidbodyHandle() {
|
||||
// Rigidbody Handles will be parented to Rigidbody Sockets
|
||||
try {
|
||||
GameObject socketObj = GameObject.Find("RigidbodySocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsTrue(socket != null);
|
||||
GameObject socketObj = GameObject.Find("RigidbodySocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsTrue(socket != null);
|
||||
|
||||
GameObject handleObj = GameObject.Find("RigidbodyHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsTrue(handle != null);
|
||||
GameObject handleObj = GameObject.Find("RigidbodyHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsTrue(handle != null);
|
||||
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
|
||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||
Assert.AreEqual(handle.transform.parent, socket.transform);
|
||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||
Assert.AreEqual(handle.transform.parent, socket.transform);
|
||||
|
||||
// Handle should be at socket position
|
||||
float distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
// Socket should not have moved
|
||||
distance = Vector3.Distance(socketPosition, socket.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
// Handle should be at socket position
|
||||
float distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
// Socket should not have moved
|
||||
distance = Vector3.Distance(socketPosition, socket.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
|
||||
#region Release
|
||||
socket.Release();
|
||||
#region Release
|
||||
socket.Release();
|
||||
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreEqual(handle.transform.parent, handleParent);
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreEqual(handle.transform.parent, handleParent);
|
||||
|
||||
// Handle should be at socket position
|
||||
distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
// Handle should be at socket position
|
||||
distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category("Socket")]
|
||||
public void RigidbodySocket_StaticHandle() {
|
||||
// Rigidbody sockets will get a fixed joint to a static handle
|
||||
try {
|
||||
GameObject socketObj = GameObject.Find("RigidbodySocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsFalse(socket == null);
|
||||
GameObject socketObj = GameObject.Find("RigidbodySocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsFalse(socket == null);
|
||||
|
||||
GameObject handleObj = GameObject.Find("StaticHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsFalse(handle == null);
|
||||
GameObject handleObj = GameObject.Find("StaticHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsFalse(handle == null);
|
||||
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
|
||||
Joint joint = socket.GetComponent<Joint>();
|
||||
Assert.IsTrue(joint != null);
|
||||
Assert.IsTrue(joint.connectedBody == null);
|
||||
Joint joint = socket.GetComponent<Joint>();
|
||||
Assert.IsTrue(joint != null);
|
||||
Assert.IsTrue(joint.connectedBody == null);
|
||||
|
||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
||||
|
||||
// Socket should be at handle position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
// Handle should not have moved
|
||||
Assert.Less(Vector3.Distance(handle.transform.position, handlePosition), 0.0001F);
|
||||
#endregion
|
||||
// Socket should be at handle position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
// Handle should not have moved
|
||||
Assert.Less(Vector3.Distance(handle.transform.position, handlePosition), 0.0001F);
|
||||
#endregion
|
||||
|
||||
#region Release
|
||||
socket.Release();
|
||||
#region Release
|
||||
socket.Release();
|
||||
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
||||
|
||||
joint = socket.GetComponent<Joint>();
|
||||
Assert.IsTrue(joint == null);
|
||||
joint = socket.GetComponent<Joint>();
|
||||
Assert.IsTrue(joint == null);
|
||||
|
||||
// Socket should still be at handle position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
#endregion
|
||||
// Socket should still be at handle position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
#endregion
|
||||
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category("Socket")]
|
||||
public void RigidbodySocket_KinematicHandle() {
|
||||
// Rigidbody sockets will get parented to kinematic handles
|
||||
try {
|
||||
GameObject socketObj = GameObject.Find("RigidbodySocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsFalse(socket == null);
|
||||
GameObject socketObj = GameObject.Find("RigidbodySocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsFalse(socket == null);
|
||||
|
||||
GameObject handleObj = GameObject.Find("KinematicHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsFalse(handle == null);
|
||||
GameObject handleObj = GameObject.Find("KinematicHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsFalse(handle == null);
|
||||
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
|
||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||
Assert.AreEqual(socket.transform.parent, handle.transform);
|
||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||
Assert.AreEqual(socket.transform.parent, handle.transform);
|
||||
|
||||
// Socket should be at handle position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
// Handle should not have moved
|
||||
Assert.Less(Vector3.Distance(handle.transform.position, handlePosition), 0.0001F);
|
||||
// Socket should be at handle position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
// Handle should not have moved
|
||||
Assert.Less(Vector3.Distance(handle.transform.position, handlePosition), 0.0001F);
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Release
|
||||
socket.Release();
|
||||
#region Release
|
||||
socket.Release();
|
||||
|
||||
Assert.IsTrue(socket.attachedTransform == null, "Socket still is attached to transform");
|
||||
Assert.AreEqual(socket.transform.parent, socketParent, "Socket is not restored to previous parent");
|
||||
Assert.IsTrue(socket.attachedTransform == null, "Socket still is attached to transform");
|
||||
Assert.AreEqual(socket.transform.parent, socketParent, "Socket is not restored to previous parent");
|
||||
|
||||
// Socket should be at handle position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
#endregion
|
||||
// Socket should be at handle position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
#endregion
|
||||
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
#endregion
|
||||
|
||||
@ -350,53 +317,47 @@ namespace Passer {
|
||||
public void KinematicSocket_RigidbodyHandle() {
|
||||
Setup();
|
||||
// Rigidbody Handles will be parented to Kinematic Sockets
|
||||
try {
|
||||
GameObject socketObj = GameObject.Find("KinematicSocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsTrue(socket != null);
|
||||
GameObject socketObj = GameObject.Find("KinematicSocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsTrue(socket != null);
|
||||
|
||||
GameObject handleObj = GameObject.Find("RigidbodyHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsTrue(handle != null);
|
||||
GameObject handleObj = GameObject.Find("RigidbodyHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsTrue(handle != null);
|
||||
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
|
||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||
Assert.AreEqual(handle.transform.parent, socket.transform);
|
||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||
Assert.AreEqual(handle.transform.parent, socket.transform);
|
||||
|
||||
// Handle should be at socket position
|
||||
float distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
// Socket should not have moved
|
||||
distance = Vector3.Distance(socketPosition, socket.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
// Handle should be at socket position
|
||||
float distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
// Socket should not have moved
|
||||
distance = Vector3.Distance(socketPosition, socket.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
|
||||
#region Release
|
||||
socket.Release();
|
||||
#region Release
|
||||
socket.Release();
|
||||
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreEqual(handle.transform.parent, handleParent);
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreEqual(handle.transform.parent, handleParent);
|
||||
|
||||
// Handle should still be at socket position
|
||||
distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
// Handle should still be at socket position
|
||||
distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||
Assert.Less(distance, 0.0001F);
|
||||
#endregion
|
||||
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -405,47 +366,41 @@ namespace Passer {
|
||||
Setup();
|
||||
|
||||
// Kinematic Sockets should be parented to a static handle
|
||||
try {
|
||||
GameObject socketObj = GameObject.Find("KinematicSocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsTrue(socket != null);
|
||||
GameObject socketObj = GameObject.Find("KinematicSocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsTrue(socket != null);
|
||||
|
||||
GameObject handleObj = GameObject.Find("StaticHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsTrue(handle != null);
|
||||
GameObject handleObj = GameObject.Find("StaticHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsTrue(handle != null);
|
||||
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
|
||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||
Assert.AreEqual(socket.transform.parent, handle.transform);
|
||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||
Assert.AreEqual(socket.transform.parent, handle.transform);
|
||||
|
||||
// Handle should be at socket position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
// Handle should not have moved
|
||||
Assert.Less(Vector3.Distance(handlePosition, handle.transform.position), 0.0001F);
|
||||
#endregion
|
||||
// Handle should be at socket position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
// Handle should not have moved
|
||||
Assert.Less(Vector3.Distance(handlePosition, handle.transform.position), 0.0001F);
|
||||
#endregion
|
||||
|
||||
#region Release
|
||||
socket.Release();
|
||||
#region Release
|
||||
socket.Release();
|
||||
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreEqual(socket.transform.parent, socketParent);
|
||||
#endregion
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreEqual(socket.transform.parent, socketParent);
|
||||
#endregion
|
||||
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -454,47 +409,41 @@ namespace Passer {
|
||||
Setup();
|
||||
|
||||
// Kinematic Handles should be parented to a kinematic socket
|
||||
try {
|
||||
GameObject socketObj = GameObject.Find("KinematicSocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsTrue(socket != null);
|
||||
GameObject socketObj = GameObject.Find("KinematicSocket");
|
||||
Socket socket = socketObj.GetComponent<Socket>();
|
||||
Assert.IsTrue(socket != null);
|
||||
|
||||
GameObject handleObj = GameObject.Find("KinematicHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsTrue(handle != null);
|
||||
GameObject handleObj = GameObject.Find("KinematicHandle");
|
||||
Handle handle = handleObj.GetComponent<Handle>();
|
||||
Assert.IsTrue(handle != null);
|
||||
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
Transform socketParent = socket.transform.parent;
|
||||
Transform handleParent = handle.transform.parent;
|
||||
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
Vector3 socketPosition = socket.transform.position;
|
||||
Vector3 handlePosition = handle.transform.position;
|
||||
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
#region Attach
|
||||
socket.Attach(handle.transform, false);
|
||||
|
||||
Assert.IsTrue(socket.attachedTransform != null);
|
||||
Assert.AreEqual(handle.transform.parent, socket.transform);
|
||||
Assert.IsTrue(socket.attachedTransform != null);
|
||||
Assert.AreEqual(handle.transform.parent, socket.transform);
|
||||
|
||||
// Handle should be at socket position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
// Socket should not have moved
|
||||
Assert.Less(Vector3.Distance(socketPosition, socket.transform.position), 0.0001F);
|
||||
#endregion
|
||||
// Handle should be at socket position
|
||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||
// Socket should not have moved
|
||||
Assert.Less(Vector3.Distance(socketPosition, socket.transform.position), 0.0001F);
|
||||
#endregion
|
||||
|
||||
#region Release
|
||||
socket.Release();
|
||||
#region Release
|
||||
socket.Release();
|
||||
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreEqual(handle.transform.parent, handleParent);
|
||||
#endregion
|
||||
Assert.IsTrue(socket.attachedTransform == null);
|
||||
Assert.AreEqual(handle.transform.parent, handleParent);
|
||||
#endregion
|
||||
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError("Test failed");
|
||||
throw (e);
|
||||
}
|
||||
socket.transform.localPosition = Vector3.zero;
|
||||
handle.transform.localPosition = Vector3.zero;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
1687
Tests/Editor/Socket/[Test]Sockets.unity
Normal file
1687
Tests/Editor/Socket/[Test]Sockets.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Tests/Editor/Socket/[Test]Sockets.unity.meta
Normal file
7
Tests/Editor/Socket/[Test]Sockets.unity.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 20750a6b085f4a5489a771b5dbf11102
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
66
Tests/Editor/Socket/[Test]SocketsSettings.lighting
Normal file
66
Tests/Editor/Socket/[Test]SocketsSettings.lighting
Normal file
@ -0,0 +1,66 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!850595691 &4890085278179872738
|
||||
LightingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: '[Test]SocketsSettings'
|
||||
serializedVersion: 6
|
||||
m_GIWorkflowMode: 1
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_RealtimeEnvironmentLighting: 1
|
||||
m_BounceScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_UsingShadowmask: 0
|
||||
m_BakeBackend: 0
|
||||
m_LightmapMaxSize: 1024
|
||||
m_BakeResolution: 40
|
||||
m_Padding: 2
|
||||
m_LightmapCompression: 3
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAO: 0
|
||||
m_MixedBakeMode: 1
|
||||
m_LightmapsBakeMode: 1
|
||||
m_FilterMode: 1
|
||||
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_RealtimeResolution: 2
|
||||
m_ForceWhiteAlbedo: 0
|
||||
m_ForceUpdates: 0
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 256
|
||||
m_FinalGatherFiltering: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVREnvironmentSampleCount: 512
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_PVRBounces: 2
|
||||
m_PVRMinBounces: 2
|
||||
m_PVREnvironmentImportanceSampling: 0
|
||||
m_PVRFilteringMode: 0
|
||||
m_PVRDenoiserTypeDirect: 0
|
||||
m_PVRDenoiserTypeIndirect: 0
|
||||
m_PVRDenoiserTypeAO: 0
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_PVRTiledBaking: 0
|
||||
m_NumRaysToShootPerTexel: -1
|
||||
m_RespectSceneVisibilityWhenBakingGI: 0
|
8
Tests/Editor/Socket/[Test]SocketsSettings.lighting.meta
Normal file
8
Tests/Editor/Socket/[Test]SocketsSettings.lighting.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7fb83d8629a9588429b6bc5689a13f90
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 4890085278179872738
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -11,12 +11,17 @@ namespace Passer.Humanoid {
|
||||
|
||||
[UnitySetUp]
|
||||
public IEnumerator Setup() {
|
||||
if (File.Exists(Application.dataPath + "/Passer/HumanoidControl/Tests/Runtime/Grabbing/Scenes/[Test]GrabbingHumanoid.unity"))
|
||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode("Assets/Passer/HumanoidControl/Tests/Runtime/Grabbing/Scenes/[Test]GrabbingHumanoid.unity", new LoadSceneParameters(LoadSceneMode.Single));
|
||||
string testSceneName = "[Test]GrabbingHumanoid.unity";
|
||||
string[] files = Directory.GetFiles(Application.dataPath, testSceneName, SearchOption.AllDirectories);
|
||||
if (files.Length == 1) {
|
||||
// strip dataPath
|
||||
string file = files[0].Substring(Application.dataPath.Length - 6);
|
||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode(file, new LoadSceneParameters(LoadSceneMode.Single));
|
||||
}
|
||||
else
|
||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode("Packages/HumanoidControl4_Free/Tests/Runtime/Grabbing/Scenes/[Test]GrabbingHumanoid.unity", new LoadSceneParameters(LoadSceneMode.Single));
|
||||
yield return new WaitForSeconds(0.1F);
|
||||
Debug.LogError($"Could not find test scene {testSceneName}");
|
||||
|
||||
yield return new WaitForSeconds(0.1F);
|
||||
}
|
||||
|
||||
[UnityTest]
|
||||
|
File diff suppressed because it is too large
Load Diff
8
Tests/Runtime/Prefabs/Characters.meta
Normal file
8
Tests/Runtime/Prefabs/Characters.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0d928f20d1a1ddd4f8f733d46aaf9494
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Tests/Runtime/Prefabs/Characters/MakeHuman_simple_TP.fbx
Normal file
BIN
Tests/Runtime/Prefabs/Characters/MakeHuman_simple_TP.fbx
Normal file
Binary file not shown.
1481
Tests/Runtime/Prefabs/Characters/MakeHuman_simple_TP.fbx.meta
Normal file
1481
Tests/Runtime/Prefabs/Characters/MakeHuman_simple_TP.fbx.meta
Normal file
File diff suppressed because it is too large
Load Diff
7726
Tests/Runtime/Prefabs/Humanoid.prefab
Normal file
7726
Tests/Runtime/Prefabs/Humanoid.prefab
Normal file
File diff suppressed because it is too large
Load Diff
8
Tests/Runtime/Prefabs/Humanoid.prefab.meta
Normal file
8
Tests/Runtime/Prefabs/Humanoid.prefab.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a9cbb74c6bc91624983fd99431b32a61
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName: possessions
|
||||
assetBundleVariant:
|
@ -11,10 +11,17 @@ namespace Passer.Humanoid {
|
||||
public class Sites_Test {
|
||||
[UnitySetUp]
|
||||
public IEnumerator Setup() {
|
||||
if (File.Exists(Application.dataPath + "/Passer/HumanoidControl/Tests/Runtime/Sites/[Test]HumanoidVisitor Desktop.unity"))
|
||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode("Assets/Passer/HumanoidControl/Tests/Runtime/Sites/[Test]HumanoidVisitor Desktop.unity", new LoadSceneParameters(LoadSceneMode.Single));
|
||||
string testSceneName = "[Test]HumanoidVisitor Desktop.unity";
|
||||
string[] files = Directory.GetFiles(Application.dataPath, testSceneName, SearchOption.AllDirectories);
|
||||
|
||||
if (files.Length == 1) {
|
||||
// strip dataPath
|
||||
string file = files[0].Substring(Application.dataPath.Length - 6);
|
||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode(file, new LoadSceneParameters(LoadSceneMode.Single));
|
||||
}
|
||||
else
|
||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode("Packages/HumanoidControl4_Free/Tests/Runtime/Sites/[Test]HumanoidVisitor Desktop.unity", new LoadSceneParameters(LoadSceneMode.Single));
|
||||
Debug.LogError($"Could not find test scene {testSceneName}");
|
||||
|
||||
yield return new WaitForSeconds(0.1F);
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!850595691 &4890085278179872738
|
||||
LightingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: '[Test]HumanoidVisitor DesktopSettings'
|
||||
serializedVersion: 6
|
||||
m_GIWorkflowMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_RealtimeEnvironmentLighting: 1
|
||||
m_BounceScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_UsingShadowmask: 1
|
||||
m_BakeBackend: 0
|
||||
m_LightmapMaxSize: 1024
|
||||
m_BakeResolution: 40
|
||||
m_Padding: 2
|
||||
m_LightmapCompression: 3
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAO: 0
|
||||
m_MixedBakeMode: 2
|
||||
m_LightmapsBakeMode: 1
|
||||
m_FilterMode: 1
|
||||
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_RealtimeResolution: 2
|
||||
m_ForceWhiteAlbedo: 0
|
||||
m_ForceUpdates: 0
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 256
|
||||
m_FinalGatherFiltering: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVREnvironmentSampleCount: 512
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_PVRBounces: 2
|
||||
m_PVRMinBounces: 2
|
||||
m_PVREnvironmentImportanceSampling: 0
|
||||
m_PVRFilteringMode: 2
|
||||
m_PVRDenoiserTypeDirect: 0
|
||||
m_PVRDenoiserTypeIndirect: 0
|
||||
m_PVRDenoiserTypeAO: 0
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_PVRTiledBaking: 0
|
||||
m_NumRaysToShootPerTexel: -1
|
||||
m_RespectSceneVisibilityWhenBakingGI: 0
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 786385e9890ca744384f4bab9cae422d
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 4890085278179872738
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
x
Reference in New Issue
Block a user