Skip to content

Commit 26c01ec

Browse files
chore: example Non-Rigidbody CharacterController, moving bodies, smooth parenting transform space transitions (#3039)
* chore Adding example of using a CharacterController that has no Rigidbody and being able to parent it under a moving and/or rotating body. This uses to be finalized NetworkTransform updates for NGO v2.x.x. * chore adding the manifest file * chore removing packages file * update Adding gitignore * fix Adding an elevator moving body. Fixing issue with disabling the GameObject vs disabling the CharacterController. * update Updating the example to mirror the most recent updates to #3013 * Create Readme.md place holder read me * Update Readme.md WIP updates added some additional sections and screenshots * update Adding [CanEditMultipleObjects] to RotatingBodyLogicEditor. Minor scene updates. * Update Readme.md * Update Readme.md * update cleaning up a bit. combining connect disconnect notifications into the extended networkmanager. made the single z-axis motion a path as opposed to the hacky way I did it originally. * update Adding some bumpers for extended networkmanager and selecting a connection type vs the selected network topology and vice versa. * Update Readme.md * update pointing to the develop-2.0.0 branch
1 parent 4b58d28 commit 26c01ec

File tree

94 files changed

+9773
-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.

94 files changed

+9773
-0
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# This .gitignore file should be placed at the root of your Unity project directory
2+
#
3+
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
4+
#
5+
/[Ll]ibrary/
6+
/[Tt]emp/
7+
/[Oo]bj/
8+
/[Bb]uild/
9+
/[Bb]uilds/
10+
/[Ll]ogs/
11+
/[Uu]ser[Ss]ettings/
12+
13+
# MemoryCaptures can get excessive in size.
14+
# They also could contain extremely sensitive data
15+
/[Mm]emoryCaptures/
16+
17+
# Asset meta data should only be ignored when the corresponding asset is also ignored
18+
!/[Aa]ssets/**/*.meta
19+
20+
# Uncomment this line if you wish to ignore the asset store tools plugin
21+
# /[Aa]ssets/AssetStoreTools*
22+
23+
# Autogenerated Jetbrains Rider plugin
24+
/[Aa]ssets/Plugins/Editor/JetBrains*
25+
26+
# Visual Studio cache directory
27+
.vs/
28+
29+
# Gradle cache directory
30+
.gradle/
31+
32+
# Autogenerated VS/MD/Consulo solution and project files
33+
ExportedObj/
34+
.consulo/
35+
*.csproj
36+
*.unityproj
37+
*.sln
38+
*.suo
39+
*.tmp
40+
*.user
41+
*.userprefs
42+
*.pidb
43+
*.booproj
44+
*.svd
45+
*.pdb
46+
*.mdb
47+
*.opendb
48+
*.VC.db
49+
50+
# Unity3D generated meta files
51+
*.pidb.meta
52+
*.pdb.meta
53+
*.mdb.meta
54+
55+
# Unity3D generated file on crash reports
56+
sysinfo.txt
57+
58+
# Builds
59+
*.apk
60+
*.aab
61+
*.unitypackage
62+
63+
# Crashlytics generated file
64+
crashlytics-build.properties
65+
66+
# Packed Addressables
67+
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*
68+
69+
# Temporary auto-generated Android Assets
70+
/[Aa]ssets/[Ss]treamingAssets/aa.meta
71+
/[Aa]ssets/[Ss]treamingAssets/aa/*
72+
/[Aa]ssets/[Ss]treamingAssets/BuildInfo.json
73+
/[Aa]ssets/[Ss]treamingAssets/BuildInfo.json.meta
74+
75+
# Secrets
76+
*.pem
77+
*.pem.meta
78+
79+
InitTestScene*
80+
81+
boot.config
82+
SceneTemplateSettings.json
83+
*BurstAotSettings*.json
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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: e651dbb3fbac04af2b8f5abf007ddc23, type: 3}
13+
m_Name: DefaultNetworkPrefabs
14+
m_EditorClassIdentifier:
15+
IsDefault: 1
16+
List:
17+
- Override: 0
18+
Prefab: {fileID: 2522762726852386808, guid: 380c984d34fc8664c8f53fc1d8733a25, type: 3}
19+
SourcePrefabToOverride: {fileID: 0}
20+
SourceHashToOverride: 0
21+
OverridingTargetPrefab: {fileID: 0}
22+
- Override: 0
23+
Prefab: {fileID: 8921789205124766477, guid: 89b57e576a8d47643b2dbd45b1f8cab1, type: 3}
24+
SourcePrefabToOverride: {fileID: 0}
25+
SourceHashToOverride: 0
26+
OverridingTargetPrefab: {fileID: 0}
27+
- Override: 0
28+
Prefab: {fileID: 3439633038736912633, guid: 398aad09d8b2a47eba664a076763cdcc, type: 3}
29+
SourcePrefabToOverride: {fileID: 0}
30+
SourceHashToOverride: 0
31+
OverridingTargetPrefab: {fileID: 0}

Examples/CharacterControllerMovingBodies/Assets/DefaultNetworkPrefabs.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.

Examples/CharacterControllerMovingBodies/Assets/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: 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: 8
6+
m_ObjectHideFlags: 0
7+
m_CorrespondingSourceObject: {fileID: 0}
8+
m_PrefabInstance: {fileID: 0}
9+
m_PrefabAsset: {fileID: 0}
10+
m_Name: ChildLocal
11+
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12+
m_Parent: {fileID: 0}
13+
m_ModifiedSerializedProperties: 0
14+
m_ValidKeywords:
15+
- _ALPHAPREMULTIPLY_ON
16+
- _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A
17+
m_InvalidKeywords: []
18+
m_LightmapFlags: 4
19+
m_EnableInstancingVariants: 0
20+
m_DoubleSidedGI: 0
21+
m_CustomRenderQueue: 3000
22+
stringTagMap:
23+
RenderType: Transparent
24+
disabledShaderPasses: []
25+
m_LockedProperties:
26+
m_SavedProperties:
27+
serializedVersion: 3
28+
m_TexEnvs:
29+
- _BumpMap:
30+
m_Texture: {fileID: 0}
31+
m_Scale: {x: 1, y: 1}
32+
m_Offset: {x: 0, y: 0}
33+
- _DetailAlbedoMap:
34+
m_Texture: {fileID: 0}
35+
m_Scale: {x: 1, y: 1}
36+
m_Offset: {x: 0, y: 0}
37+
- _DetailMask:
38+
m_Texture: {fileID: 0}
39+
m_Scale: {x: 1, y: 1}
40+
m_Offset: {x: 0, y: 0}
41+
- _DetailNormalMap:
42+
m_Texture: {fileID: 0}
43+
m_Scale: {x: 1, y: 1}
44+
m_Offset: {x: 0, y: 0}
45+
- _EmissionMap:
46+
m_Texture: {fileID: 0}
47+
m_Scale: {x: 1, y: 1}
48+
m_Offset: {x: 0, y: 0}
49+
- _MainTex:
50+
m_Texture: {fileID: 0}
51+
m_Scale: {x: 1, y: 1}
52+
m_Offset: {x: 0, y: 0}
53+
- _MetallicGlossMap:
54+
m_Texture: {fileID: 0}
55+
m_Scale: {x: 1, y: 1}
56+
m_Offset: {x: 0, y: 0}
57+
- _OcclusionMap:
58+
m_Texture: {fileID: 0}
59+
m_Scale: {x: 1, y: 1}
60+
m_Offset: {x: 0, y: 0}
61+
- _ParallaxMap:
62+
m_Texture: {fileID: 0}
63+
m_Scale: {x: 1, y: 1}
64+
m_Offset: {x: 0, y: 0}
65+
m_Ints: []
66+
m_Floats:
67+
- _BumpScale: 1
68+
- _Cutoff: 0.5
69+
- _DetailNormalMapScale: 1
70+
- _DstBlend: 10
71+
- _GlossMapScale: 0
72+
- _Glossiness: 0
73+
- _GlossyReflections: 1
74+
- _Metallic: 0
75+
- _Mode: 3
76+
- _OcclusionStrength: 1
77+
- _Parallax: 0.02
78+
- _SmoothnessTextureChannel: 1
79+
- _SpecularHighlights: 1
80+
- _SrcBlend: 1
81+
- _UVSec: 0
82+
- _ZWrite: 0
83+
m_Colors:
84+
- _Color: {r: 0.8980392, g: 0.039215658, b: 0.7682729, a: 0.2509804}
85+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
86+
m_BuildTextureStacks: []

Examples/CharacterControllerMovingBodies/Assets/Materials/ChildLocal.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: 8
6+
m_ObjectHideFlags: 0
7+
m_CorrespondingSourceObject: {fileID: 0}
8+
m_PrefabInstance: {fileID: 0}
9+
m_PrefabAsset: {fileID: 0}
10+
m_Name: ChildLocalNoParentSync
11+
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12+
m_Parent: {fileID: 0}
13+
m_ModifiedSerializedProperties: 0
14+
m_ValidKeywords:
15+
- _ALPHAPREMULTIPLY_ON
16+
- _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A
17+
m_InvalidKeywords: []
18+
m_LightmapFlags: 4
19+
m_EnableInstancingVariants: 0
20+
m_DoubleSidedGI: 0
21+
m_CustomRenderQueue: 3000
22+
stringTagMap:
23+
RenderType: Transparent
24+
disabledShaderPasses: []
25+
m_LockedProperties:
26+
m_SavedProperties:
27+
serializedVersion: 3
28+
m_TexEnvs:
29+
- _BumpMap:
30+
m_Texture: {fileID: 0}
31+
m_Scale: {x: 1, y: 1}
32+
m_Offset: {x: 0, y: 0}
33+
- _DetailAlbedoMap:
34+
m_Texture: {fileID: 0}
35+
m_Scale: {x: 1, y: 1}
36+
m_Offset: {x: 0, y: 0}
37+
- _DetailMask:
38+
m_Texture: {fileID: 0}
39+
m_Scale: {x: 1, y: 1}
40+
m_Offset: {x: 0, y: 0}
41+
- _DetailNormalMap:
42+
m_Texture: {fileID: 0}
43+
m_Scale: {x: 1, y: 1}
44+
m_Offset: {x: 0, y: 0}
45+
- _EmissionMap:
46+
m_Texture: {fileID: 0}
47+
m_Scale: {x: 1, y: 1}
48+
m_Offset: {x: 0, y: 0}
49+
- _MainTex:
50+
m_Texture: {fileID: 0}
51+
m_Scale: {x: 1, y: 1}
52+
m_Offset: {x: 0, y: 0}
53+
- _MetallicGlossMap:
54+
m_Texture: {fileID: 0}
55+
m_Scale: {x: 1, y: 1}
56+
m_Offset: {x: 0, y: 0}
57+
- _OcclusionMap:
58+
m_Texture: {fileID: 0}
59+
m_Scale: {x: 1, y: 1}
60+
m_Offset: {x: 0, y: 0}
61+
- _ParallaxMap:
62+
m_Texture: {fileID: 0}
63+
m_Scale: {x: 1, y: 1}
64+
m_Offset: {x: 0, y: 0}
65+
m_Ints: []
66+
m_Floats:
67+
- _BumpScale: 1
68+
- _Cutoff: 0.5
69+
- _DetailNormalMapScale: 1
70+
- _DstBlend: 10
71+
- _GlossMapScale: 0
72+
- _Glossiness: 0
73+
- _GlossyReflections: 1
74+
- _Metallic: 0
75+
- _Mode: 3
76+
- _OcclusionStrength: 1
77+
- _Parallax: 0.02
78+
- _SmoothnessTextureChannel: 1
79+
- _SpecularHighlights: 1
80+
- _SrcBlend: 1
81+
- _UVSec: 0
82+
- _ZWrite: 0
83+
m_Colors:
84+
- _Color: {r: 0.039215658, g: 0.78592235, b: 0.8980392, a: 0.2509804}
85+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
86+
m_BuildTextureStacks: []

Examples/CharacterControllerMovingBodies/Assets/Materials/ChildLocalNoParentSync.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.

0 commit comments

Comments
 (0)