Skip to content

Commit 0df25da

Browse files
committed
Added UnityPhysicsExamples
1 parent fc42378 commit 0df25da

File tree

654 files changed

+124646
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

654 files changed

+124646
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,5 @@ The Boids example provides a more complex scenario with thousands of Entities. B
7676
Looking for information on how to get started or have specific questions? Visit our ECS & Job system documentation.
7777

7878
[Go to documentation](Documentation~/index.md)
79+
80+
[Click here for the Physics samples Documentation](UnityPhysicsExamples/Documentation/samples.md)

UnityPhysicsExamples/Assets/Common.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: bf2edee5c58d82540a51f03df9d42094, type: 3}
13+
m_Name: LWRP_Asset
14+
m_EditorClassIdentifier:
15+
k_AssetVersion: 4
16+
m_RequireDepthTexture: 0
17+
m_RequireOpaqueTexture: 0
18+
m_OpaqueDownsampling: 1
19+
m_SupportsHDR: 0
20+
m_MSAA: 2
21+
m_RenderScale: 1
22+
m_MainLightRenderingMode: 1
23+
m_MainLightShadowsSupported: 1
24+
m_MainLightShadowmapResolution: 2048
25+
m_AdditionalLightsRenderingMode: 1
26+
m_AdditionalLightsPerObjectLimit: 4
27+
m_AdditionalLightShadowsSupported: 1
28+
m_AdditionalLightsShadowmapResolution: 512
29+
m_ShadowDistance: 1000
30+
m_ShadowCascades: 2
31+
m_Cascade2Split: 0.25
32+
m_Cascade4Split: {x: 0.026420284, y: 0.13043474, z: 0.35395643}
33+
m_ShadowDepthBias: 1
34+
m_ShadowNormalBias: 1
35+
m_SoftShadowsSupported: 0
36+
m_UseSRPBatcher: 0
37+
m_SupportsDynamicBatching: 1
38+
m_MixedLightingSupported: 1
39+
m_ShadowType: 1
40+
m_LocalShadowsSupported: 1
41+
m_LocalShadowsAtlasResolution: 512
42+
m_MaxPixelLights: 4
43+
m_ShadowAtlasResolution: 2048
44+
m_ResourcesAsset: {fileID: 11400000, guid: aac5a08c32552a14c89394b703f1978a, type: 2}
45+
m_ShaderVariantLogLevel: 0

UnityPhysicsExamples/Assets/Common/LWRP_Asset.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnityPhysicsExamples/Assets/Common/Materials.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!21 &2100000
4+
Material:
5+
serializedVersion: 6
6+
m_ObjectHideFlags: 0
7+
m_CorrespondingSourceObject: {fileID: 0}
8+
m_PrefabInstance: {fileID: 0}
9+
m_PrefabAsset: {fileID: 0}
10+
m_Name: Colorful
11+
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
12+
m_ShaderKeywords:
13+
m_LightmapFlags: 4
14+
m_EnableInstancingVariants: 1
15+
m_DoubleSidedGI: 0
16+
m_CustomRenderQueue: 2050
17+
stringTagMap:
18+
RenderType: Opaque
19+
disabledShaderPasses: []
20+
m_SavedProperties:
21+
serializedVersion: 3
22+
m_TexEnvs:
23+
- _BaseMap:
24+
m_Texture: {fileID: 0}
25+
m_Scale: {x: 1, y: 1}
26+
m_Offset: {x: 0, y: 0}
27+
- _BumpMap:
28+
m_Texture: {fileID: 0}
29+
m_Scale: {x: 1, y: 1}
30+
m_Offset: {x: 0, y: 0}
31+
- _DetailAlbedoMap:
32+
m_Texture: {fileID: 0}
33+
m_Scale: {x: 1, y: 1}
34+
m_Offset: {x: 0, y: 0}
35+
- _DetailMask:
36+
m_Texture: {fileID: 0}
37+
m_Scale: {x: 1, y: 1}
38+
m_Offset: {x: 0, y: 0}
39+
- _DetailNormalMap:
40+
m_Texture: {fileID: 0}
41+
m_Scale: {x: 1, y: 1}
42+
m_Offset: {x: 0, y: 0}
43+
- _EmissionMap:
44+
m_Texture: {fileID: 0}
45+
m_Scale: {x: 1, y: 1}
46+
m_Offset: {x: 0, y: 0}
47+
- _MainTex:
48+
m_Texture: {fileID: 0}
49+
m_Scale: {x: 1, y: 1}
50+
m_Offset: {x: 0, y: 0}
51+
- _MetallicGlossMap:
52+
m_Texture: {fileID: 0}
53+
m_Scale: {x: 1, y: 1}
54+
m_Offset: {x: 0, y: 0}
55+
- _OcclusionMap:
56+
m_Texture: {fileID: 0}
57+
m_Scale: {x: 1, y: 1}
58+
m_Offset: {x: 0, y: 0}
59+
- _ParallaxMap:
60+
m_Texture: {fileID: 0}
61+
m_Scale: {x: 1, y: 1}
62+
m_Offset: {x: 0, y: 0}
63+
- _SpecGlossMap:
64+
m_Texture: {fileID: 0}
65+
m_Scale: {x: 1, y: 1}
66+
m_Offset: {x: 0, y: 0}
67+
m_Floats:
68+
- _AlphaClip: 0
69+
- _Blend: 0
70+
- _BumpScale: 1
71+
- _Cull: 2
72+
- _Cutoff: 0.5
73+
- _DetailNormalMapScale: 1
74+
- _DstBlend: 0
75+
- _EnvironmentReflections: 1
76+
- _GlossMapScale: 1
77+
- _Glossiness: 0.5
78+
- _GlossyReflections: 1
79+
- _Metallic: 0
80+
- _Mode: 0
81+
- _OcclusionStrength: 1
82+
- _Parallax: 0.02
83+
- _QueueOffset: 0
84+
- _ReceiveShadows: 1
85+
- _Smoothness: 0.5
86+
- _SmoothnessTextureChannel: 0
87+
- _SpecularHighlights: 1
88+
- _SrcBlend: 1
89+
- _Surface: 0
90+
- _UVSec: 0
91+
- _WorkflowMode: 1
92+
- _ZWrite: 1
93+
m_Colors:
94+
- _BaseColor: {r: 1, g: 0.3940544, b: 0.38207546, a: 1}
95+
- _Color: {r: 1, g: 0.39405444, b: 0.3820755, a: 1}
96+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
97+
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
98+
--- !u!114 &3676710219935537556
99+
MonoBehaviour:
100+
m_ObjectHideFlags: 11
101+
m_CorrespondingSourceObject: {fileID: 0}
102+
m_PrefabInstance: {fileID: 0}
103+
m_PrefabAsset: {fileID: 0}
104+
m_GameObject: {fileID: 0}
105+
m_Enabled: 1
106+
m_EditorHideFlags: 0
107+
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
108+
m_Name:
109+
m_EditorClassIdentifier:
110+
version: 1

UnityPhysicsExamples/Assets/Common/Materials/Colorful.mat.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!21 &2100000
4+
Material:
5+
serializedVersion: 6
6+
m_ObjectHideFlags: 0
7+
m_CorrespondingSourceObject: {fileID: 0}
8+
m_PrefabInternal: {fileID: 0}
9+
m_Name: DebugMaterial
10+
m_Shader: {fileID: 4800000, guid: 284c017caead21c4185658d8d466797c, type: 3}
11+
m_ShaderKeywords:
12+
m_LightmapFlags: 4
13+
m_EnableInstancingVariants: 0
14+
m_DoubleSidedGI: 0
15+
m_CustomRenderQueue: -1
16+
stringTagMap: {}
17+
disabledShaderPasses: []
18+
m_SavedProperties:
19+
serializedVersion: 3
20+
m_TexEnvs:
21+
- _BaseTexture:
22+
m_Texture: {fileID: 2800000, guid: 24228c76bdb8f9f4d87f468ba127e71d, type: 3}
23+
m_Scale: {x: 1, y: 1}
24+
m_Offset: {x: 0, y: 0}
25+
- _BumpMap:
26+
m_Texture: {fileID: 0}
27+
m_Scale: {x: 1, y: 1}
28+
m_Offset: {x: 0, y: 0}
29+
- _DetailAlbedoMap:
30+
m_Texture: {fileID: 0}
31+
m_Scale: {x: 1, y: 1}
32+
m_Offset: {x: 0, y: 0}
33+
- _DetailMask:
34+
m_Texture: {fileID: 0}
35+
m_Scale: {x: 1, y: 1}
36+
m_Offset: {x: 0, y: 0}
37+
- _DetailNormalMap:
38+
m_Texture: {fileID: 0}
39+
m_Scale: {x: 1, y: 1}
40+
m_Offset: {x: 0, y: 0}
41+
- _EmissionMap:
42+
m_Texture: {fileID: 0}
43+
m_Scale: {x: 1, y: 1}
44+
m_Offset: {x: 0, y: 0}
45+
- _MainTex:
46+
m_Texture: {fileID: 0}
47+
m_Scale: {x: 1, y: 1}
48+
m_Offset: {x: 0, y: 0}
49+
- _MetallicGlossMap:
50+
m_Texture: {fileID: 0}
51+
m_Scale: {x: 1, y: 1}
52+
m_Offset: {x: 0, y: 0}
53+
- _OcclusionMap:
54+
m_Texture: {fileID: 0}
55+
m_Scale: {x: 1, y: 1}
56+
m_Offset: {x: 0, y: 0}
57+
- _ParallaxMap:
58+
m_Texture: {fileID: 0}
59+
m_Scale: {x: 1, y: 1}
60+
m_Offset: {x: 0, y: 0}
61+
m_Floats:
62+
- _BumpScale: 1
63+
- _Cutoff: 0.5
64+
- _DetailNormalMapScale: 1
65+
- _DstBlend: 0
66+
- _GlossMapScale: 1
67+
- _Glossiness: 0.5
68+
- _GlossyReflections: 1
69+
- _Metallic: 0.493
70+
- _Mode: 0
71+
- _OcclusionStrength: 1
72+
- _Parallax: 0.02
73+
- _Scale: 1
74+
- _Shininess: 0.7
75+
- _SmoothnessTextureChannel: 0
76+
- _SpecularHighlights: 1
77+
- _SrcBlend: 1
78+
- _TopDown: 0
79+
- _UVSec: 0
80+
- _ZWrite: 1
81+
m_Colors:
82+
- _BaseColour: {r: 1, g: 1, b: 1, a: 1}
83+
- _Color: {r: 0.9265388, g: 0.8632076, b: 1, a: 1}
84+
- _Emission: {r: 0, g: 0, b: 0, a: 0}
85+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
86+
- _SpecColor: {r: 1, g: 1, b: 1, a: 1}

UnityPhysicsExamples/Assets/Common/Materials/DebugMaterial.mat.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: cea4b49c4d6784a3291bea84d8086c8e, type: 3}
13+
m_Name: PhysicsCategoryNames
14+
m_EditorClassIdentifier:
15+
m_CategoryNames:
16+
- Static Environmental
17+
- Dynamic Environmental
18+
- Kinematic Environmental
19+
- Characters
20+
- Vehicles
21+
- Bullets
22+
- Jeep
23+
- Humvee
24+
- Truck Cab
25+
- Truck Trailer
26+
-
27+
-
28+
-
29+
-
30+
-
31+
-
32+
-
33+
-
34+
-
35+
-
36+
-
37+
-
38+
-
39+
-
40+
-
41+
-
42+
-
43+
-
44+
-
45+
-
46+
-
47+
-

0 commit comments

Comments
 (0)