diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/GameSettings.sdgamesettings b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/GameSettings.sdgamesettings index 4930f986f..d2e81dc92 100644 --- a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/GameSettings.sdgamesettings +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/GameSettings.sdgamesettings @@ -2,13 +2,9 @@ Id: 1e8aa650-da28-44e4-b76f-e7865c20fcd5 SerializedVersion: {Stride: 3.1.0.1} Tags: [] -DefaultScene: 1e5ed5df-d685-4f73-beb0-2672147f9aef:Scenes/Audio/Completed-Audio +DefaultScene: 6cd262df-d02e-4709-81fa-a93750f4ddd5:Scenes/Navigation/Completed-Navigation GraphicsCompositor: fe026ff4-fdf9-48b9-87fb-65764cb9153f:GraphicsCompositor Defaults: - - !Stride.Audio.AudioEngineSettings,Stride.Audio - HrtfSupport: true - - !Stride.Assets.EditorSettings,Stride.Assets - RenderingMode: HDR - !Stride.Graphics.RenderingSettings,Stride.Graphics DefaultBackBufferWidth: 1280 DefaultBackBufferHeight: 720 @@ -16,11 +12,47 @@ Defaults: DefaultGraphicsProfile: Level_10_0 ColorSpace: Linear DisplayOrientation: LandscapeRight + - !Stride.Assets.EditorSettings,Stride.Assets + RenderingMode: HDR + - !Stride.Assets.Textures.TextureSettings,Stride.Assets + TextureQuality: Fast + - !Stride.Physics.PhysicsSettings,Stride.Physics + Flags: None + MaxSubSteps: 1 + FixedTimeStep: 0.016666668 + - !Stride.Audio.AudioEngineSettings,Stride.Audio + HrtfSupport: false + - !Stride.Navigation.NavigationSettings,Stride.Navigation + EnableDynamicNavigationMesh: false + IncludedCollisionGroups: AllFilter + BuildSettings: + CellHeight: 0.1 + CellSize: 0.1 + TileSize: 16 + MinRegionArea: 10 + RegionMergeArea: 20 + MaxEdgeLen: 20.0 + MaxEdgeError: 2.0 + DetailSamplingDistance: 2.0 + MaxDetailSamplingError: 2.0 + Groups: + - Id: 9398904c-72b7-ca9b-e966-23346704ae98 + Name: RegularCharacters + AgentSettings: + Height: 1.2 + MaxClimb: 0.3 + MaxSlope: {Radians: 1.0471976} + Radius: 0.3 + - Id: 7a5f7a1c-26bd-4cff-acb2-882a748e3f7a + Name: TinyCharacters + AgentSettings: + Height: 0.5 + MaxClimb: 0.4 + MaxSlope: {Radians: 0.6981317} + Radius: 0.1 - !Stride.Streaming.StreamingSettings,Stride.Rendering ManagerUpdatesInterval: 0:00:00:00.0330000 ResourceLiveTimeout: 0:00:00:08.0000000 - - !Stride.Assets.Textures.TextureSettings,Stride.Assets - TextureQuality: Fast Overrides: [] PlatformFilters: - PowerVR SGX 54[0-9] diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Prefabs/DefaultScenery.sdprefab b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Prefabs/DefaultScenery.sdprefab index 3fb17e204..ed5607dbd 100644 --- a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Prefabs/DefaultScenery.sdprefab +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Prefabs/DefaultScenery.sdprefab @@ -7,6 +7,7 @@ Hierarchy: - ref!! 1f6a48cb-f1c3-4fa0-8426-10460b957224 - ref!! 6fb0f099-8844-4b0b-bb60-809fa9895243 - ref!! 157729d7-9c11-4c7d-8483-68f15dc8a47d + - ref!! 5625332c-ba48-4920-8f28-e2d1376c608a Parts: - Entity: Id: 157729d7-9c11-4c7d-8483-68f15dc8a47d @@ -51,6 +52,18 @@ Hierarchy: 21dd436cc2cb430bd71cbe9891a2a1d8: !StaticPlaneColliderShapeDesc Normal: {X: 0.0, Y: 1.0, Z: 0.0} Offset: 0.0 + - Folder: Ground + Entity: + Id: 5625332c-ba48-4920-8f28-e2d1376c608a + Name: GridBase10x10 + Components: + 988b33898a90e85e2534eb51a3a991cf: !TransformComponent + Id: a9a8911d-f8c4-433a-aa91-1a7b6f1da3e7 + Position: {X: -5.0000005, Y: 0.0, Z: -5.0000005} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 139c644a50f28a67373c0ee61bed76e6: ref!! c897e331-1240-488e-8470-41293b0e5f53 - Entity: Id: 6fb0f099-8844-4b0b-bb60-809fa9895243 Name: Directional light @@ -76,3 +89,37 @@ Hierarchy: ComputeTransmittance: false BiasParameters: {} Intensity: 20.0 + - Entity: + Id: 76dbe8af-692a-45d5-8c9a-6fd390e04586 + Name: GridBase10x10 + Components: + 4eecb3c27affe3478bcc584553d59e41: !TransformComponent + Id: c897e331-1240-488e-8470-41293b0e5f53 + Position: {X: 5.0, Y: 0.0, Z: 5.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 7c901dfed21c864283aa0639481520b1: !ModelComponent + Id: 31b2ab8f-a355-41c5-9866-d80173864b67 + Model: ee4e1a2b-82a5-4f40-9c2b-1c239dea039a:Models/GridBase10x10 + Materials: {} + e892de73aae78041aa74ca19b0b9f867: !StaticColliderComponent + Id: 1cce9088-0bec-4187-b14b-284af892396d + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + 6f9d4e7e5147bf47ad510aa5f27d122b: !BoxColliderShapeDesc + Is2D: false + Size: {X: 10.0, Y: 0.3, Z: 10.0} + LocalOffset: {X: 0.0, Y: -0.15, Z: 0.0} + LocalRotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Base: + BasePartAsset: faca3ec7-598e-40b0-bdd4-7a6dfd9635b0:BlocksPrefabs/GridBase10x10 + BasePartId: b045349c-565e-4488-9130-a795b0e3b229 + InstanceId: cd287632-0c5e-4a73-a8eb-575efe930692 diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/1-UI basics/UI basics - Completed.sdscene b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/1-UI basics/UI basics - Completed.sdscene index b8ae53944..c02c66723 100644 --- a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/1-UI basics/UI basics - Completed.sdscene +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/1-UI basics/UI basics - Completed.sdscene @@ -386,6 +386,7 @@ Hierarchy: 448f8e2762692057e54bc90f75f3a111: ref!! 64fc5886-c994-445c-9667-cdb9409ac112 0126a9387ae5477f43736a253d5e2190: ref!! d348c114-c5b5-48e1-a904-f7a507eb2ea5 51f6894e6e499625a4bd944f9e95fd69: ref!! b50b3465-ca75-4448-90e5-37eb2cfc2fec + 39644c4631e76f206eb009e2d6e43f6c: ref!! 4a5f64c7-854f-4786-8ab7-ab910eb36f31 - Entity: Id: 42070554-5f3f-472d-a52c-6546ed85413a Name: Box4x2x1 @@ -678,6 +679,22 @@ Hierarchy: BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery BasePartId: e2b3e4bc-3b15-4349-969c-974dae4f1ea7 InstanceId: bd3950e6-ee7b-4aea-9a87-b4cc8b436798 + - Folder: Ground + Entity: + Id: 8b39d541-eae2-49ee-ba8d-107915b7cad8 + Name: GridBase10x10 + Components: + 988b33898a90e85e2534eb51a3a991cf: !TransformComponent + Id: 4a5f64c7-854f-4786-8ab7-ab910eb36f31 + Position: {X: -5.0000005, Y: 0.0, Z: -5.0000005} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 139c644a50f28a67373c0ee61bed76e6: ref!! 208f4326-7369-4a61-987c-0c67da694d51 + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 5625332c-ba48-4920-8f28-e2d1376c608a + InstanceId: bd3950e6-ee7b-4aea-9a87-b4cc8b436798 - Folder: Walls Entity: Id: 8e9466f5-b307-41ff-b9cb-0d8d4c9daa33 @@ -1128,3 +1145,37 @@ Hierarchy: BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery BasePartId: 1f6a48cb-f1c3-4fa0-8426-10460b957224 InstanceId: bd3950e6-ee7b-4aea-9a87-b4cc8b436798 + - Entity: + Id: f6c92c7f-b0a9-4233-9b00-ca5166943d5b + Name: GridBase10x10 + Components: + 4eecb3c27affe3478bcc584553d59e41: !TransformComponent + Id: 208f4326-7369-4a61-987c-0c67da694d51 + Position: {X: 5.0, Y: 0.0, Z: 5.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 7c901dfed21c864283aa0639481520b1: !ModelComponent + Id: a73f7556-7ff2-4e3c-9ae7-5e7fbdb88f0c + Model: ee4e1a2b-82a5-4f40-9c2b-1c239dea039a:Models/GridBase10x10 + Materials: {} + e892de73aae78041aa74ca19b0b9f867: !StaticColliderComponent + Id: c50573b0-9f42-4ae7-90be-5a29d03984a5 + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + 6f9d4e7e5147bf47ad510aa5f27d122b: !BoxColliderShapeDesc + Is2D: false + Size: {X: 10.0, Y: 0.3, Z: 10.0} + LocalOffset: {X: 0.0, Y: -0.15, Z: 0.0} + LocalRotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 76dbe8af-692a-45d5-8c9a-6fd390e04586 + InstanceId: bd3950e6-ee7b-4aea-9a87-b4cc8b436798 diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/2-CollisionTriggers/CollisionTriggers - Completed.sdscene b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/2-CollisionTriggers/CollisionTriggers - Completed.sdscene index bd9a90118..453bd91f8 100644 --- a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/2-CollisionTriggers/CollisionTriggers - Completed.sdscene +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/2-CollisionTriggers/CollisionTriggers - Completed.sdscene @@ -400,6 +400,40 @@ Hierarchy: BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery BasePartId: 9a11c9b8-bfff-46a1-b0d7-01f302e193f3 InstanceId: 93b689a8-3380-41c2-9eca-daee9f4b910b + - Entity: + Id: 4be31a7b-a1f3-452f-8f27-02959ba406b5 + Name: GridBase10x10 + Components: + 4eecb3c27affe3478bcc584553d59e41: !TransformComponent + Id: 764014fa-4405-40c1-b376-f6fd8d09326e + Position: {X: 5.0, Y: 0.0, Z: 5.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 7c901dfed21c864283aa0639481520b1: !ModelComponent + Id: f400fb9d-6cf8-42d9-bd78-f6d7c7a22109 + Model: ee4e1a2b-82a5-4f40-9c2b-1c239dea039a:Models/GridBase10x10 + Materials: {} + e892de73aae78041aa74ca19b0b9f867: !StaticColliderComponent + Id: cf02d090-9d77-4fa2-92e6-e493636bcad8 + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + 6f9d4e7e5147bf47ad510aa5f27d122b: !BoxColliderShapeDesc + Is2D: false + Size: {X: 10.0, Y: 0.3, Z: 10.0} + LocalOffset: {X: 0.0, Y: -0.15, Z: 0.0} + LocalRotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 76dbe8af-692a-45d5-8c9a-6fd390e04586 + InstanceId: 93b689a8-3380-41c2-9eca-daee9f4b910b - Folder: null Entity: Id: 4e3127fb-aca1-4df2-b7a8-ec0cd63cc108 @@ -656,6 +690,22 @@ Hierarchy: BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery BasePartId: 6fb0f099-8844-4b0b-bb60-809fa9895243 InstanceId: 93b689a8-3380-41c2-9eca-daee9f4b910b + - Folder: Ground + Entity: + Id: 8d88457d-1425-4d54-838b-e2c52a2aab92 + Name: GridBase10x10 + Components: + 988b33898a90e85e2534eb51a3a991cf: !TransformComponent + Id: c43d0d89-1688-433d-aa6f-695da5b8c405 + Position: {X: -5.0000005, Y: 0.0, Z: -5.0000005} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 139c644a50f28a67373c0ee61bed76e6: ref!! 764014fa-4405-40c1-b376-f6fd8d09326e + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 5625332c-ba48-4920-8f28-e2d1376c608a + InstanceId: 93b689a8-3380-41c2-9eca-daee9f4b910b - Entity: Id: 90250255-6561-4f83-a1fc-298e8270876f Name: Ball @@ -1134,6 +1184,7 @@ Hierarchy: 597071202cdad191f46360779ea69e16: ref!! ba03ca89-e8dd-43a0-9d54-40a290e5060a c80c5386705820955b0450a6f6ec17f3: ref!! 0ec9ba78-1910-43be-8f46-09ef2e06a45e c0bf067145eaeb4b1e38c3f672bda9cb: ref!! 2363f259-aebb-415c-8f91-845ec7a9a2d8 + 21dcc84ddabe9922a4b2bbcb783c9513: ref!! c43d0d89-1688-433d-aa6f-695da5b8c405 - Folder: Walls Entity: Id: eef7eb55-63e0-44a2-8663-c640aaaeae33 diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/3-Raycasting/Raycasting - Completed.sdscene b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/3-Raycasting/Raycasting - Completed.sdscene index 45a72e2f5..ac2d7c324 100644 --- a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/3-Raycasting/Raycasting - Completed.sdscene +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/3-Raycasting/Raycasting - Completed.sdscene @@ -403,6 +403,40 @@ Hierarchy: BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery BasePartId: 28ad2098-88a9-4d40-a88b-f640554b8b25 InstanceId: 04ef00e9-f593-4624-a9c7-e2f707a8d6fc + - Entity: + Id: 20ab1d42-65d4-46ad-8cbd-29790a7bafbf + Name: GridBase10x10 + Components: + 4eecb3c27affe3478bcc584553d59e41: !TransformComponent + Id: 45a5b91d-cdd0-48ed-8009-15b581aca915 + Position: {X: 5.0, Y: 0.0, Z: 5.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 7c901dfed21c864283aa0639481520b1: !ModelComponent + Id: fab91d2b-3bc1-4030-a01f-319419ba5fdb + Model: ee4e1a2b-82a5-4f40-9c2b-1c239dea039a:Models/GridBase10x10 + Materials: {} + e892de73aae78041aa74ca19b0b9f867: !StaticColliderComponent + Id: e541a412-102f-4b9b-aed1-1973c65ac24f + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + 6f9d4e7e5147bf47ad510aa5f27d122b: !BoxColliderShapeDesc + Is2D: false + Size: {X: 10.0, Y: 0.3, Z: 10.0} + LocalOffset: {X: 0.0, Y: -0.15, Z: 0.0} + LocalRotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 76dbe8af-692a-45d5-8c9a-6fd390e04586 + InstanceId: 04ef00e9-f593-4624-a9c7-e2f707a8d6fc - Folder: null Entity: Id: 225635f2-6c76-4d41-8c37-58e4342d6f17 @@ -802,6 +836,22 @@ Hierarchy: Size: {X: 1.0, Y: 1.0, Z: 1.0} LocalOffset: {X: 0.0, Y: 0.5, Z: 0.0} LocalRotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + - Folder: Ground + Entity: + Id: 7524022f-bfa0-4f7d-a6c2-f777533440a4 + Name: GridBase10x10 + Components: + 988b33898a90e85e2534eb51a3a991cf: !TransformComponent + Id: c037a7b7-a03d-4b9c-9d10-dc0a374adc00 + Position: {X: -5.0000005, Y: 0.0, Z: -5.0000005} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 139c644a50f28a67373c0ee61bed76e6: ref!! 45a5b91d-cdd0-48ed-8009-15b581aca915 + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 5625332c-ba48-4920-8f28-e2d1376c608a + InstanceId: 04ef00e9-f593-4624-a9c7-e2f707a8d6fc - Folder: RightBoxes Entity: Id: 7920fe21-ec69-44e3-bd24-31ab996d6c1b @@ -949,6 +999,7 @@ Hierarchy: 0748e6f3e55bc22c3bea75ac2b264582: ref!! 29585dd0-7728-4db0-b8c1-c074679e8499 69d03d14a52927068b9a38325976fbaf: ref!! e50fe674-a2bb-4acf-af79-05ac7ab43884 5118d3be8410532adc22f41e4c70ae2b: ref!! a7249687-983e-4c34-8a55-d8dbb3b291b2 + 352bc53f36be23e1bc823b4ea5f7abe4: ref!! c037a7b7-a03d-4b9c-9d10-dc0a374adc00 - Folder: Walls Entity: Id: 89c3f49d-af33-45c1-9ad8-f68d781fd300 diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/4-SceneLoading/Completed-SceneA.sdscene b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/4-SceneLoading/Completed-SceneA.sdscene index 3d25203e5..01eaec6e6 100644 --- a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/4-SceneLoading/Completed-SceneA.sdscene +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/4-SceneLoading/Completed-SceneA.sdscene @@ -214,6 +214,40 @@ Hierarchy: BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery BasePartId: d1a37e40-a7a6-4293-b6dd-dd5f47853696 InstanceId: e601aea1-d210-482c-9f60-b592942377f0 + - Entity: + Id: 37b0a96f-8b61-4df3-bcd7-f45b9583004c + Name: GridBase10x10 + Components: + 4eecb3c27affe3478bcc584553d59e41: !TransformComponent + Id: 6919711b-c9f7-41b1-868d-8247d4a09335 + Position: {X: 5.0, Y: 0.0, Z: 5.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 7c901dfed21c864283aa0639481520b1: !ModelComponent + Id: c279ed08-5e1d-4957-b3af-589cec3abe0e + Model: ee4e1a2b-82a5-4f40-9c2b-1c239dea039a:Models/GridBase10x10 + Materials: {} + e892de73aae78041aa74ca19b0b9f867: !StaticColliderComponent + Id: e8616bb0-7bdb-4caf-8516-f834a5e8a57a + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + 6f9d4e7e5147bf47ad510aa5f27d122b: !BoxColliderShapeDesc + Is2D: false + Size: {X: 10.0, Y: 0.3, Z: 10.0} + LocalOffset: {X: 0.0, Y: -0.15, Z: 0.0} + LocalRotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 76dbe8af-692a-45d5-8c9a-6fd390e04586 + InstanceId: e601aea1-d210-482c-9f60-b592942377f0 - Entity: Id: 3d642e5b-d722-4cbb-8000-8d857dd8b435 Name: Box4x2x1 @@ -715,6 +749,22 @@ Hierarchy: Name: null Projection: Perspective Slot: 41f9c2cc-ee60-452f-8f6d-44e30148d556 + - Folder: Ground + Entity: + Id: 9670be8c-31aa-44cf-895d-168c9193069a + Name: GridBase10x10 + Components: + 988b33898a90e85e2534eb51a3a991cf: !TransformComponent + Id: c4147ff1-2d56-4081-abd5-de04899b54b1 + Position: {X: -5.0000005, Y: 0.0, Z: -5.0000005} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 139c644a50f28a67373c0ee61bed76e6: ref!! 6919711b-c9f7-41b1-868d-8247d4a09335 + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 5625332c-ba48-4920-8f28-e2d1376c608a + InstanceId: e601aea1-d210-482c-9f60-b592942377f0 - Entity: Id: a382e781-4031-4e25-844e-bac362f84de5 Name: DefaultScenery @@ -749,6 +799,7 @@ Hierarchy: 8459cf770b7f4d94e5b7b3d6ab50bc54: ref!! d4cff13b-849c-40ce-8e9b-bc06e2fd8432 9149298194a5eb63b1fe553fe53c94c8: ref!! 7bc37351-38a4-4bdf-ba5d-b756284826f0 39e5209a6039bc98de07a9bab71c44b1: ref!! a20203db-77f7-40ab-ba1e-0f8a51ad309e + ef9cb7bd912f14442cc7491ea9d91958: ref!! c4147ff1-2d56-4081-abd5-de04899b54b1 - Folder: Walls Entity: Id: a59fbc36-574c-4132-8481-79d43096ce1a diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Additive animations/Completed-Additive-Animations.sdscene b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Additive animations/Completed-Additive-Animations.sdscene index f602dbcb7..0c4bf477d 100644 --- a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Additive animations/Completed-Additive-Animations.sdscene +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Additive animations/Completed-Additive-Animations.sdscene @@ -10,6 +10,40 @@ Hierarchy: - ref!! 52928118-d74c-4698-9560-b398f89e47ca - ref!! 7bcfc547-801b-42a5-885f-3bb5bbf96b80 Parts: + - Entity: + Id: 14883c6c-9af6-4127-a6b2-ad1931ae6c03 + Name: GridBase10x10 + Components: + 4eecb3c27affe3478bcc584553d59e41: !TransformComponent + Id: b8d88469-4264-4832-83b0-55f4fd6f1dff + Position: {X: 5.0, Y: 0.0, Z: 5.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 7c901dfed21c864283aa0639481520b1: !ModelComponent + Id: 61980454-6636-4627-8254-330e16ba4e34 + Model: ee4e1a2b-82a5-4f40-9c2b-1c239dea039a:Models/GridBase10x10 + Materials: {} + e892de73aae78041aa74ca19b0b9f867: !StaticColliderComponent + Id: 1d7cdd33-08ef-4064-9df2-8ade36303fbc + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + 6f9d4e7e5147bf47ad510aa5f27d122b: !BoxColliderShapeDesc + Is2D: false + Size: {X: 10.0, Y: 0.3, Z: 10.0} + LocalOffset: {X: 0.0, Y: -0.15, Z: 0.0} + LocalRotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 76dbe8af-692a-45d5-8c9a-6fd390e04586 + InstanceId: c328e779-664e-47a9-a158-9fc5a4ef7073 - Entity: Id: 18ac9f77-8d8e-4a51-a2eb-ffc729151a34 Name: Box4x2x1 @@ -378,6 +412,7 @@ Hierarchy: dbe59972d6ad6331520c29546b0089b8: ref!! c6cb7db7-daa5-4a7b-bab6-60bb8f742743 516e49438cee3a5e73446a86797a0a04: ref!! 044e3080-646d-4d70-8a26-6e208c9f4595 9c3dce063ea9b8bf575323334faf2d38: ref!! f9f4bb3f-9439-4318-90c3-2616cd5cc7ef + 418a28cbb0fa035ae9624f3d1290250f: ref!! 29d15e7a-4a45-45a9-94b4-2a513fdd681e - Folder: Walls Entity: Id: 53535b20-a0a8-4180-b6c0-c79a6c0442c6 @@ -986,6 +1021,22 @@ Hierarchy: BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery BasePartId: 40599ea6-6ca4-4a1a-882a-b4648a4b1998 InstanceId: c328e779-664e-47a9-a158-9fc5a4ef7073 + - Folder: Ground + Entity: + Id: e98e8400-fe7c-4f5d-b62d-ed596d6c10bb + Name: GridBase10x10 + Components: + 988b33898a90e85e2534eb51a3a991cf: !TransformComponent + Id: 29d15e7a-4a45-45a9-94b4-2a513fdd681e + Position: {X: -5.0000005, Y: 0.0, Z: -5.0000005} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 139c644a50f28a67373c0ee61bed76e6: ref!! b8d88469-4264-4832-83b0-55f4fd6f1dff + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 5625332c-ba48-4920-8f28-e2d1376c608a + InstanceId: c328e779-664e-47a9-a158-9fc5a4ef7073 - Folder: Ground Entity: Id: ec145ca2-288c-48ca-a779-e97a29571b87 diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Animation basics/Completed-Animations.sdscene b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Animation basics/Completed-Animations.sdscene index 9422e076e..2a58415a6 100644 --- a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Animation basics/Completed-Animations.sdscene +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Animation basics/Completed-Animations.sdscene @@ -253,6 +253,40 @@ Hierarchy: BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery BasePartId: 9a11c9b8-bfff-46a1-b0d7-01f302e193f3 InstanceId: 92bb38d7-0329-499f-a029-3321034a8431 + - Entity: + Id: 2ad58d07-32d2-443c-986b-ce2e59887090 + Name: GridBase10x10 + Components: + 4eecb3c27affe3478bcc584553d59e41: !TransformComponent + Id: 279591a6-0232-49f4-859f-7a22f55669a0 + Position: {X: 5.0, Y: 0.0, Z: 5.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 7c901dfed21c864283aa0639481520b1: !ModelComponent + Id: 4decef8f-735d-4f3a-a58b-2d6b49aaafbc + Model: ee4e1a2b-82a5-4f40-9c2b-1c239dea039a:Models/GridBase10x10 + Materials: {} + e892de73aae78041aa74ca19b0b9f867: !StaticColliderComponent + Id: becfa394-0d96-4d72-a932-06b3e666d2ce + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + 6f9d4e7e5147bf47ad510aa5f27d122b: !BoxColliderShapeDesc + Is2D: false + Size: {X: 10.0, Y: 0.3, Z: 10.0} + LocalOffset: {X: 0.0, Y: -0.15, Z: 0.0} + LocalRotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 76dbe8af-692a-45d5-8c9a-6fd390e04586 + InstanceId: 92bb38d7-0329-499f-a029-3321034a8431 - Entity: Id: 4385280b-27a6-48a7-abe2-3f9721b87884 Name: Box4x2x1 @@ -478,6 +512,7 @@ Hierarchy: dbe59972d6ad6331520c29546b0089b8: ref!! 9bdfbaf3-f16f-447c-a5f9-bd357ceb4e67 516e49438cee3a5e73446a86797a0a04: ref!! 51c9000d-7623-4141-979d-0d12f474bb41 9c3dce063ea9b8bf575323334faf2d38: ref!! d0c97082-6398-4218-92fb-5bc445e020e6 + 65d4bf129ea9c731c7f6f195e7afcaf6: ref!! 457e923b-10e5-4885-9b25-91dd209aca40 - Folder: Ground Entity: Id: 57228ecb-1398-47be-886b-6511c2e6b746 @@ -698,6 +733,22 @@ Hierarchy: BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery BasePartId: af01ee46-1132-4956-9993-e1d21ce655af InstanceId: 92bb38d7-0329-499f-a029-3321034a8431 + - Folder: Ground + Entity: + Id: 8f1950cc-5e86-45d2-81c9-8c5cf08a4d74 + Name: GridBase10x10 + Components: + 988b33898a90e85e2534eb51a3a991cf: !TransformComponent + Id: 457e923b-10e5-4885-9b25-91dd209aca40 + Position: {X: -5.0000005, Y: 0.0, Z: -5.0000005} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 139c644a50f28a67373c0ee61bed76e6: ref!! 279591a6-0232-49f4-859f-7a22f55669a0 + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 5625332c-ba48-4920-8f28-e2d1376c608a + InstanceId: 92bb38d7-0329-499f-a029-3321034a8431 - Entity: Id: 9e6a6661-7156-4d10-918c-a487120c8308 Name: Skybox diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Audio/Completed-Audio.sdscene b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Audio/Completed-Audio.sdscene index e34c4dabf..2f2ef6b9b 100644 --- a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Audio/Completed-Audio.sdscene +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Audio/Completed-Audio.sdscene @@ -31,6 +31,40 @@ Hierarchy: BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery BasePartId: 157729d7-9c11-4c7d-8483-68f15dc8a47d InstanceId: 4b0908cf-48d5-433b-a2e6-052c64b35b1f + - Entity: + Id: 5c442790-1a9d-491e-b483-234b5364c897 + Name: GridBase10x10 + Components: + 4eecb3c27affe3478bcc584553d59e41: !TransformComponent + Id: cbba28b5-95e5-4ec3-bb7d-bc828f9730df + Position: {X: 5.0, Y: 0.0, Z: 5.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 7c901dfed21c864283aa0639481520b1: !ModelComponent + Id: d92a8563-c7cd-4abe-9898-62179361e116 + Model: ee4e1a2b-82a5-4f40-9c2b-1c239dea039a:Models/GridBase10x10 + Materials: {} + e892de73aae78041aa74ca19b0b9f867: !StaticColliderComponent + Id: 227c7377-5d4a-4c2d-a30a-4f601cd27a53 + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + 6f9d4e7e5147bf47ad510aa5f27d122b: !BoxColliderShapeDesc + Is2D: false + Size: {X: 10.0, Y: 0.3, Z: 10.0} + LocalOffset: {X: 0.0, Y: -0.15, Z: 0.0} + LocalRotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 76dbe8af-692a-45d5-8c9a-6fd390e04586 + InstanceId: 4b0908cf-48d5-433b-a2e6-052c64b35b1f - Entity: Id: 5cc00c9f-1d5c-483b-9a62-c984b0ca0211 Name: DefaultScenery @@ -44,6 +78,23 @@ Hierarchy: 4cb3ab22075013d0c9f8ce6725646c8e: ref!! cd9f50d4-a4ac-4362-a224-47b7c5bf929f 6fcebcc27fef2785d770deef7d2dab17: ref!! c730343b-a7fe-4df7-b04a-baa57b64ce58 8a7b5167b10fb60930bf465ca72e9c28: ref!! b8049495-665e-444e-9edf-afc9f9613d65 + 0ac1ae19469e14f529db6182de366efb: ref!! 19d0661f-20e1-4cd5-b643-abd9853ce7de + - Folder: Ground + Entity: + Id: 7aa1ace2-b5d6-4753-ad5c-9b8556086557 + Name: GridBase10x10 + Components: + 988b33898a90e85e2534eb51a3a991cf: !TransformComponent + Id: 19d0661f-20e1-4cd5-b643-abd9853ce7de + Position: {X: -5.0000005, Y: 0.0, Z: -5.0000005} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 139c644a50f28a67373c0ee61bed76e6: ref!! cbba28b5-95e5-4ec3-bb7d-bc828f9730df + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 5625332c-ba48-4920-8f28-e2d1376c608a + InstanceId: 4b0908cf-48d5-433b-a2e6-052c64b35b1f - Entity: Id: abc7d72a-90a4-432a-a912-a297e8b8eae6 Name: Camera diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Navigation/Completed-Navigation.sdscene b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Navigation/Completed-Navigation.sdscene new file mode 100644 index 000000000..9070ce0c9 --- /dev/null +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Navigation/Completed-Navigation.sdscene @@ -0,0 +1,449 @@ +!SceneAsset +Id: 6cd262df-d02e-4709-81fa-a93750f4ddd5 +SerializedVersion: {Stride: 3.1.0.1} +Tags: [] +ChildrenIds: [] +Offset: {X: 0.0, Y: 0.0, Z: 0.0} +Hierarchy: + RootParts: + - ref!! 95898dc6-bd76-4f5c-99ba-069cde29d7b6 + - ref!! 21b724d6-bd01-4381-bbbd-7e02b1d8d7c1 + - ref!! 4d59c38d-5996-4d11-b665-9ee4e167049f + - ref!! 9bf9c65c-8fe7-4791-957b-e2aff1622d46 + - ref!! f20e0971-e8b1-4e44-bc24-615a6234cb63 + - ref!! b5eb0e9a-84e2-4603-8c7a-4b42405b663d + - ref!! 9950dc53-a21f-4552-aaaf-62729b865e2b + - ref!! f429f6f1-c8bd-4d52-842f-37a05bf63e83 + Parts: + - Entity: + Id: 21b724d6-bd01-4381-bbbd-7e02b1d8d7c1 + Name: Stairs + Components: + 9a1d66eae487009ca4274ad92d002cfc: !TransformComponent + Id: e07df4ff-990c-480f-ab4d-b9f1096b1498 + Position: {X: 0.0, Y: 0.0, Z: 0.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + cad35ad89500c8f86f1487fe815276fb: ref!! be11ac10-c8a9-46bd-9ffe-dc1120771407 + ba1d54e7cae55aa7bc4d82ce6cda7408: ref!! 99d59945-4278-4147-b0a3-ae414d433903 + eb64947a1038f1176ae4f5aff8abd2c5: ref!! c95bc474-ad7a-4906-8435-457ad1c10e8f + 389d91e6e982bd9ae470e11b396f0019: ref!! 7d567ff6-e612-4b37-91b7-7f3079b0e297 + 75fb01ae2b505b8ffb64679d0d2a2807: ref!! 1b30f3e4-9c51-477e-9309-657e45d5ba35 + 4c4a4e2c84ca89797453e10696a46c88: ref!! c46dfc2a-49f8-481e-abce-bfa5a4768ff8 + 4b41108916c5f79554c7c4f2820fa2fe: ref!! d393090a-fc27-43e4-be82-a97dfb664efe + - Entity: + Id: 497b0bcb-1345-4567-9876-ed86627253e8 + Name: Directional light + Components: + 16e72a50b470bfe748983da5458eb723: !TransformComponent + Id: d7c7affa-6f59-4429-b490-9f8dc5ba8c20 + Position*: {X: 0.0, Y: 9.520389, Z: 0.0} + Rotation: {X: 0.007513374, Y: -0.85018384, Z: -0.45847577, W: -0.25871006} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 97d8ad5803ac5cb648f845db4591e5cf: !LightComponent + Id: 8ed92969-ccaf-480c-8f38-66cf3296fa14 + Type: !LightDirectional + Color: !ColorRgbProvider + Value: {R: 1.0, G: 1.0, B: 1.0} + Shadow: + Enabled: true + Filter: !LightShadowMapFilterTypePcf + FilterSize: Filter5x5 + Size: Large + DepthRange: {} + PartitionMode: !LightDirectionalShadowMap.PartitionLogarithmic {} + ComputeTransmittance: false + BiasParameters: {} + Intensity: 20.0 + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 6fb0f099-8844-4b0b-bb60-809fa9895243 + InstanceId: 15f3238c-c3ff-425f-8c49-710f7c040707 + - Entity: + Id: 4d59c38d-5996-4d11-b665-9ee4e167049f + Name: Navigation Demo + Components: + b3f2453c94cea2494ce0f1422202ce4b: !TransformComponent + Id: 7f8f2cd9-701b-4e9c-a5fa-a85426aab0e8 + Position: {X: 0.0, Y: 0.0, Z: 0.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + - Folder: Ground + Entity: + Id: 5747bc34-a6b2-4269-ba2b-2c6c8e75c2c8 + Name: GridBase10x10 + Components: + 988b33898a90e85e2534eb51a3a991cf: !TransformComponent + Id: 1fc89cce-03da-4a86-9a1e-edc2f2fbf8ca + Position: {X: -5.0000005, Y: 0.0, Z: -5.0000005} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 139c644a50f28a67373c0ee61bed76e6: ref!! 6c08172b-2a27-4d74-8afe-d090fe60c4e1 + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 5625332c-ba48-4920-8f28-e2d1376c608a + InstanceId: 15f3238c-c3ff-425f-8c49-710f7c040707 + - Entity: + Id: 7ca04602-e8d1-4008-9014-2c4eb0dfdb51 + Name: Box3x1x1 + Components: + b985eef57914f7805acf8a31f6a91d54: !TransformComponent + Id: c46dfc2a-49f8-481e-abce-bfa5a4768ff8 + Position: {X: -0.45581222, Y: 0.70537513, Z: -2.8061857} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + - Entity: + Id: 81e8eda6-b7b9-4366-adb9-eedf9c931c98 + Name: Stairs1x1x2 + Components: + 1fd94bf6112e05418d8b81f8ee7c0a28: !TransformComponent + Id: 5d8c0865-97fc-4a16-b2db-16556c973f73 + Position*: {X: 0.34474838, Y: 0.5, Z: 0.22349083} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 289202be5050af41832ce05e2d398d2c: !ModelComponent + Id: 5834af2c-ba7f-47d1-a245-50a95f0a53f2 + Enabled*: true + Model: da028d29-e641-4020-8977-dafaaf656ad4:Models/Stairs1x1x2 + Materials: + 74dc3e7c6e633f46a3801edd86a197dd~0: 08b6f010-a274-4180-83c4-0f2c0920774b:Materials/GridMTStairs + 01635891d64e2c4d98af82259f64e540: !StaticColliderComponent + Id: 2f81d300-9225-4280-9bf2-a23ad21ef7d9 + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + e50925e86d99e849bde2b006ac86de09: !ColliderShapeAssetDesc + Shape: 934024bf-9a3a-4e33-8fb0-fa4e14832f2b:CollisionMeshes/Stairs1x1x2 + Base: + BasePartAsset: d74cc744-2324-4e4b-ad1b-577d83087eea:BlocksPrefabs/Stairs1x1x2 + BasePartId: b7b6a519-2edb-4e90-88ef-1426d0feac16 + InstanceId: 63ccaeb2-05df-47a5-a86e-ce3e75cc27c1 + - Entity: + Id: 862e9228-785f-4600-aece-0fa4527288ec + Name: Box3x1x1 + Components: + b985eef57914f7805acf8a31f6a91d54: !TransformComponent + Id: 1b30f3e4-9c51-477e-9309-657e45d5ba35 + Position: {X: -1.5330018, Y: 0.70537513, Z: -2.8061857} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + - Entity: + Id: 92c06e8f-3ec6-44e1-ab1a-d50ecbf2d5c9 + Name: Ramp1x1x1 + Components: + 1ec2082036bff4caaa63eaf4eb78ec2f: !TransformComponent + Id: d393090a-fc27-43e4-be82-a97dfb664efe + Position: {X: 0.49409294, Y: 0.10526219, Z: -2.954041} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 04be5454cde521e01adf1861eec5069e: ref!! 20bab83b-a023-4dd0-9724-d2e84423ec75 + - Entity: + Id: 938a9ad3-37f9-4adc-8c79-a378e6ec12ab + Name: Floor2x0x1 + Components: + 8977bcef904f23ceb42524e3c1e679fd: !TransformComponent + Id: c95bc474-ad7a-4906-8435-457ad1c10e8f + Position: {X: -1.9904088, Y: 0.9353833, Z: -3.9567363} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 648186eca72fe50993d89924326aba0d: ref!! a9fcca21-593b-4ff3-87b1-1ab036a3111e + - Entity: + Id: 95898dc6-bd76-4f5c-99ba-069cde29d7b6 + Name: DefaultScenery + Components: + da436bd5facd193729190bc026fb4dc9: !TransformComponent + Id: d4d5d59e-effe-43b0-9abf-bbbade3adf44 + Position: {X: 0.0, Y: 0.0, Z: 0.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 5eb80fb687ceb9120b9e276f0b152cd1: ref!! d7c7affa-6f59-4429-b490-9f8dc5ba8c20 + 927278cb7ef6a4aaf2702b5ad8c46857: ref!! e7dc42a3-86e3-4e15-9fdd-6e68a5e8abd9 + dc028b698df25300a32d45c95e85acb3: ref!! 1fc89cce-03da-4a86-9a1e-edc2f2fbf8ca + - Entity: + Id: 9950dc53-a21f-4552-aaaf-62729b865e2b + Name: Camera + Components: + b41aefdb5f32e2f107a70451fae63806: !TransformComponent + Id: 73ed1e09-b06c-493d-ac35-0069b594c633 + Position: {X: 0.0, Y: 4.587303, Z: 4.226979} + Rotation: {X: -0.39028946, Y: 0.0, Z: 0.0, W: 0.9206922} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 649dc8c48d92e4c7f8d556d17fa66cfa: !CameraComponent + Id: 89a21f50-836f-46af-8c9e-d37f710878b6 + Name: null + Projection: Perspective + Slot: 41f9c2cc-ee60-452f-8f6d-44e30148d556 + 3a96e46770e9f58a359d59264de6247b: !CSharpIntermediate.Code.Navigate,CSharpIntermediate.Game + Id: 7a1dc291-37c1-4b90-973e-f879e50aa4a1 + RegularCharacter: ref!! b5eb0e9a-84e2-4603-8c7a-4b42405b663d + TargetSphere: null + - Entity: + Id: 9bf9c65c-8fe7-4791-957b-e2aff1622d46 + Name: NavigationMesh boundingbox A + Components: + d58699f8e1bee3cc0f799354dad4ea57: !TransformComponent + Id: 457787c4-47d3-4996-ac66-303f25186f60 + Position: {X: -2.2739, Y: 1.2896843, Z: 0.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 8a6a7e8fd135e0acf4914e69477014b6: !Stride.Navigation.NavigationBoundingBoxComponent,Stride.Navigation + Id: 71d51f20-0751-44d7-a435-d6f1706935f0 + Size: {X: 2.0, Y: 2.0, Z: 5.0} + - Entity: + Id: b30927a4-fec3-44d5-8114-c4eff48f17d3 + Name: GridBase10x10 + Components: + 4eecb3c27affe3478bcc584553d59e41: !TransformComponent + Id: 6c08172b-2a27-4d74-8afe-d090fe60c4e1 + Position: {X: 5.0, Y: 0.0, Z: 5.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 7c901dfed21c864283aa0639481520b1: !ModelComponent + Id: 0880ae34-2c89-4edf-acb0-6ed53fadc387 + Model: ee4e1a2b-82a5-4f40-9c2b-1c239dea039a:Models/GridBase10x10 + Materials: {} + e892de73aae78041aa74ca19b0b9f867: !StaticColliderComponent + Id: 66c4f3ac-b2c5-444c-834e-1a16521c103c + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + 6f9d4e7e5147bf47ad510aa5f27d122b: !BoxColliderShapeDesc + Is2D: false + Size: {X: 10.0, Y: 0.3, Z: 10.0} + LocalOffset: {X: 0.0, Y: -0.15, Z: 0.0} + LocalRotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 76dbe8af-692a-45d5-8c9a-6fd390e04586 + InstanceId: 15f3238c-c3ff-425f-8c49-710f7c040707 + - Entity: + Id: b5eb0e9a-84e2-4603-8c7a-4b42405b663d + Name: RegularCharacter + Components: + aa799e808c5836540f9aeb04ba600be8: !TransformComponent + Id: d582a1e7-0ab5-47f8-9529-14a0c35dd37c + Position: {X: -2.3220387, Y: 0.49333665, Z: -0.63706756} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 0.5, Y: 1.8, Z: 0.5} + Children: {} + 32b1c2f87b79e975940c95bde52fc0d2: !ModelComponent + Id: 168da8ce-0dfc-4651-b3e3-da72eb10aabb + Model: 3bebe6b9-2b1c-43d6-9d5d-936e861187f9:Models/Cylinder + Materials: + 51f8101362a6c8baff5b2d790a714cb5~0: adf8fc52-f54b-48d8-b883-e4b78e774d99:Materials/MaterialA + a0a98353404bd2291711f540962452e4: !NavigationComponent + Id: 12ca02c6-1450-437b-8a77-da5e56dde9ef + NavigationMesh: fa78ae58-3128-4495-a3de-ee61de77b1a3:Scenes/Navigation/NavigationMesh-Normal + GroupId: 9398904c-72b7-ca9b-e966-23346704ae98 + - Entity: + Id: c88fa76a-4e95-4ac8-89de-95042d574a06 + Name: Stairs1x1x2 + Components: + 6975408fa4436989610197f82ab739ae: !TransformComponent + Id: be11ac10-c8a9-46bd-9ffe-dc1120771407 + Position: {X: -1.853881, Y: -0.06461668, Z: -2.1948233} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + c7c13324a8a5075983dbd58bf9709377: ref!! 5d8c0865-97fc-4a16-b2db-16556c973f73 + - Entity: + Id: c979e5d1-f4e4-482e-8967-0a73f7ebe060 + Name: Ramp1x1x1 + Components: + f209476be8802a4aa93c1768358ae3c4: !TransformComponent + Id: 20bab83b-a023-4dd0-9724-d2e84423ec75 + Position*: {X: 1.0099471, Y: 0.4075867, Z: 0.54303074} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + f8c751136a9aa643afa88b938510189c: !ModelComponent + Id: 1c94eaea-21fc-4665-b3a5-4fe598bb0583 + Enabled*: true + Model: e55d79be-700a-44db-a70f-8512c67dd07d:Models/Ramp1x1x1 + Materials: + 74dc3e7c6e633f46a3801edd86a197dd~0: 08b6f010-a274-4180-83c4-0f2c0920774b:Materials/GridMTStairs + ef71e33350ba7041a0b72c62a58ca295: !StaticColliderComponent + Id: b6ffa329-6e7a-40fb-9603-a4f78c9d8dae + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + 8359b4c0fa7e894ba4582a7bdd8e1ae6: !ColliderShapeAssetDesc + Shape: 26f14582-93fd-4080-9f17-1f4444fe2205:CollisionMeshes/Ramp1x1x1 + Base: + BasePartAsset: ecf8a905-6220-499c-9d8a-47876d7fbee5:BlocksPrefabs/Ramp1x1x1 + BasePartId: 359739c2-83bd-443b-8749-d2f4ede41a24 + InstanceId: c4065a36-6804-4363-90e4-e36edeffe1ba + - Entity: + Id: d394851a-3f0f-4020-9685-581c12db8558 + Name: Stairs1x1x2 + Components: + 6975408fa4436989610197f82ab739ae: !TransformComponent + Id: 99d59945-4278-4147-b0a3-ae414d433903 + Position: {X: 1.1496652, Y: 0.10040879, Z: -2.1948233} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + - Entity: + Id: d9f98ac9-df09-4d90-b011-76bbd164972b + Name: Floor2x0x1 + Components: + 983c7b3bf13aac40829f8af4045b77c1: !TransformComponent + Id: a9fcca21-593b-4ff3-87b1-1ab036a3111e + Position: {X: 0.99999994, Y: 0.0, Z: 0.49999997} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 1a51cab18c015f4bad0f8f83933b02cc: !ModelComponent + Id: c43056a7-eddc-4e43-a2e9-3bd2764e24f4 + Enabled*: true + Model: 6f70f12f-e8d9-467e-a4e7-7489cf967274:Models/Floor2x0x1 + Materials: + 1f66d7610cd6dc4c9b32d800d312e162~0: 9366d8fb-3605-4070-abaa-7bb7f1cdfbc1:Materials/GridMTPlatform + 9b0dc84c029fed4caf8b86b095c216e6: !StaticColliderComponent + Id: c28adf9a-8ef9-47a7-bd1d-8b0f750203d9 + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + 69605f939a4042449ecc2179c0de2592: !BoxColliderShapeDesc + Is2D: false + Size: {X: 2.0, Y: 0.05, Z: 1.0} + LocalOffset: {X: 0.0, Y: 0.0, Z: 0.0} + LocalRotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Base: + BasePartAsset: 3724e4ed-4cb5-447d-a3ea-86ee8bfec3e5:BlocksPrefabs/Floor2x0x1 + BasePartId: b7b381ac-aac8-4c5b-8eba-7aabe138ee6f + InstanceId: f8e837bb-a52f-4ebc-a69a-f23cec1880cc + - Entity: + Id: e8351216-60cf-401b-90f1-ba074da9e8e5 + Name: Floor2x0x1 + Components: + 8977bcef904f23ceb42524e3c1e679fd: !TransformComponent + Id: 7d567ff6-e612-4b37-91b7-7f3079b0e297 + Position: {X: 0.009591271, Y: -0.06461668, Z: -3.9567363} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 648186eca72fe50993d89924326aba0d: ref!! fab4c7da-d31d-4430-8b52-81b96a697ef5 + - Folder: null + Entity: + Id: ec0d6681-978d-42ec-8330-3af57772ee4f + Name: Floor2x0x1 + Components: + 983c7b3bf13aac40829f8af4045b77c1: !TransformComponent + Id: fab4c7da-d31d-4430-8b52-81b96a697ef5 + Position*: {X: 0.99999994, Y: 1.0, Z: 0.49999997} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 1a51cab18c015f4bad0f8f83933b02cc: !ModelComponent + Id: abf54712-9aee-4839-8bcf-dcc0b5df73db + Enabled*: true + Model: 6f70f12f-e8d9-467e-a4e7-7489cf967274:Models/Floor2x0x1 + Materials: + 1f66d7610cd6dc4c9b32d800d312e162~0: 9366d8fb-3605-4070-abaa-7bb7f1cdfbc1:Materials/GridMTPlatform + 9b0dc84c029fed4caf8b86b095c216e6: !StaticColliderComponent + Id: e3b7b1f2-6ef8-46e3-bf18-866cb6e43538 + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + 69605f939a4042449ecc2179c0de2592: !BoxColliderShapeDesc + Is2D: false + Size: {X: 2.0, Y: 0.05, Z: 1.0} + LocalOffset: {X: 0.0, Y: 0.0, Z: 0.0} + LocalRotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Base: + BasePartAsset: 3724e4ed-4cb5-447d-a3ea-86ee8bfec3e5:BlocksPrefabs/Floor2x0x1 + BasePartId: b7b381ac-aac8-4c5b-8eba-7aabe138ee6f + InstanceId: ee703131-fcdd-4d9f-92d5-c1c5f1adca89 + - Entity: + Id: f20e0971-e8b1-4e44-bc24-615a6234cb63 + Name: NavigationMesh boundingbox B + Components: + d58699f8e1bee3cc0f799354dad4ea57: !TransformComponent + Id: 763ba471-f051-4583-9765-c3a485239e14 + Position: {X: 2.2226057, Y: 1.418687, Z: -2.6103754} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 8a6a7e8fd135e0acf4914e69477014b6: !Stride.Navigation.NavigationBoundingBoxComponent,Stride.Navigation + Id: 0518c748-6b63-4022-aaa2-94ac144aa4d0 + Size: {X: 2.0, Y: 2.0, Z: 2.0} + - Entity: + Id: f429f6f1-c8bd-4d52-842f-37a05bf63e83 + Name: Sphere + Components: + 2c5a30d777d94d39783de06181de32ea: !TransformComponent + Id: 1e10ef5b-515d-4146-9ef5-1cef1d45844a + Position: {X: -1.9792256, Y: 0.0, Z: 1.3886127} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 0.35165212, Y: 0.35165212, Z: 0.35165212} + Children: {} + c0d96d3d79d7ce7880e414bb0749c8ad: !ModelComponent + Id: 42834d37-1d90-4816-acba-9367a969335c + Model: 5178da4c-69ec-4123-a502-ef9925474f3d:Models/Sphere + Materials: + dc333b7ff3d35a498d01e8aa0a51f16e~0: ee1ef4b7-4fb4-4597-ad68-84b86ab128c7:Materials/board1 + - Entity: + Id: f91ca713-78c6-4c97-a6f4-3fe0854e6da7 + Name: Skybox + Components: + a052bb2a7ce338fbc0727426771a7d4c: !TransformComponent + Id: e7dc42a3-86e3-4e15-9fdd-6e68a5e8abd9 + Position*: {X: 0.0, Y: 9.520389, Z: -2.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 508e804e75f75666d3c5e41788acc3cc: !BackgroundComponent + Id: 28c01f9b-cb64-433f-b7af-cf987a2b9493 + Texture: null + 0a7d931be3c08faeeda5bbca8fefbc73: !LightComponent + Id: 6fe52892-2712-4025-aa55-d831b54518e1 + Type: !LightSkybox + Skybox: null + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 157729d7-9c11-4c7d-8483-68f15dc8a47d + InstanceId: 15f3238c-c3ff-425f-8c49-710f7c040707 diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Navigation/NavigationMesh-Normal.sdnavmesh b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Navigation/NavigationMesh-Normal.sdnavmesh new file mode 100644 index 000000000..73d249004 --- /dev/null +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Navigation/NavigationMesh-Normal.sdnavmesh @@ -0,0 +1,18 @@ +!NavigationMeshAsset +Id: fa78ae58-3128-4495-a3de-ee61de77b1a3 +SerializedVersion: {Stride: 2.0.0.0} +Tags: [] +Scene: 6cd262df-d02e-4709-81fa-a93750f4ddd5:Scenes/Navigation/Completed-Navigation +IncludedCollisionGroups: AllFilter +BuildSettings: + CellHeight: 0.1 + CellSize: 0.1 + TileSize: 8 + MinRegionArea: 2 + RegionMergeArea: 20 + MaxEdgeLen: 12.0 + MaxEdgeError: 1.3 + DetailSamplingDistance: 10.0 + MaxDetailSamplingError: 1.0 +SelectedGroups: + 108a2db71c58337cb530deec1dfc7ff8: 9398904c-72b7-ca9b-e966-23346704ae98 diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Navigation/NavigationMesh-Tiny.sdnavmesh b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Navigation/NavigationMesh-Tiny.sdnavmesh new file mode 100644 index 000000000..fbe35d407 --- /dev/null +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/Navigation/NavigationMesh-Tiny.sdnavmesh @@ -0,0 +1,18 @@ +!NavigationMeshAsset +Id: 4e537b0a-215f-4b4d-976d-aef5bc85e893 +SerializedVersion: {Stride: 2.0.0.0} +Tags: [] +Scene: 6cd262df-d02e-4709-81fa-a93750f4ddd5:Scenes/Navigation/Completed-Navigation +IncludedCollisionGroups: AllFilter +BuildSettings: + CellHeight: 0.1 + CellSize: 0.2 + TileSize: 8 + MinRegionArea: 2 + RegionMergeArea: 20 + MaxEdgeLen: 12.0 + MaxEdgeError: 1.3 + DetailSamplingDistance: 10.0 + MaxDetailSamplingError: 1.0 +SelectedGroups: + 108a2db71c58337cb530deec1dfc7ff8: 7a5f7a1c-26bd-4cff-acb2-882a748e3f7a diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/ProjectUnproject/Completed-ProjectUnproject.sdscene b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/ProjectUnproject/Completed-ProjectUnproject.sdscene index 88f784fa1..252b51799 100644 --- a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/ProjectUnproject/Completed-ProjectUnproject.sdscene +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/Assets/Scenes/ProjectUnproject/Completed-ProjectUnproject.sdscene @@ -66,6 +66,22 @@ Hierarchy: BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery BasePartId: f7cf8e94-8c8c-49ad-ae01-c4f6b757a16a InstanceId: 20b67e1c-1ee1-49f6-8812-a3c1c439fe36 + - Folder: Ground + Entity: + Id: 115649d1-1a26-4d6c-9d0c-915b83d5f78b + Name: GridBase10x10 + Components: + 988b33898a90e85e2534eb51a3a991cf: !TransformComponent + Id: 366da06f-e8b9-4267-97bb-403c311a9793 + Position: {X: -5.0000005, Y: 0.0, Z: -5.0000005} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: + 139c644a50f28a67373c0ee61bed76e6: ref!! cb979fdc-36d6-49ec-9684-5f6fed0100e2 + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 5625332c-ba48-4920-8f28-e2d1376c608a + InstanceId: 20b67e1c-1ee1-49f6-8812-a3c1c439fe36 - Folder: Walls Entity: Id: 11bc69fa-66e8-4438-8408-440aa8d7702d @@ -496,6 +512,7 @@ Hierarchy: 4c1a18011f3168b8b6e6ecb4c656ba2b: ref!! 209056df-f427-424a-b7eb-7dd2d405ea4d 86615f8fff016f263e4e4eae0b523670: ref!! 3449847c-2ec7-4f4d-a439-9ccab34ebf5b c7f523a338fda0c69c17572c50f5ab7d: ref!! 18b54654-bf2f-4ce8-8635-4a7547135f61 + c57c3921c5556e944f4244c2b2f9b9d0: ref!! 366da06f-e8b9-4267-97bb-403c311a9793 8c530681e9dba4db01ca105c04498ad6: ref!! 2ecaf519-224d-4d5d-927d-c551be53a5ec cb1011543a202e5e6654313a0892ae8f: ref!! 859d83fb-93e0-4286-90bd-5487cda9238f 1a4aa6ebd358931b77afb551a0d562a9: ref!! 32c5b024-d6dd-4126-9925-d67d0e39d86a @@ -1132,6 +1149,40 @@ Hierarchy: BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery BasePartId: 40599ea6-6ca4-4a1a-882a-b4648a4b1998 InstanceId: 20b67e1c-1ee1-49f6-8812-a3c1c439fe36 + - Entity: + Id: f1df3ef0-da56-481b-832d-1fad179ee46e + Name: GridBase10x10 + Components: + 4eecb3c27affe3478bcc584553d59e41: !TransformComponent + Id: cb979fdc-36d6-49ec-9684-5f6fed0100e2 + Position: {X: 5.0, Y: 0.0, Z: 5.0} + Rotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Scale: {X: 1.0, Y: 1.0, Z: 1.0} + Children: {} + 7c901dfed21c864283aa0639481520b1: !ModelComponent + Id: 1fe46554-5f05-487b-b676-7f1eb6fa3fb9 + Model: ee4e1a2b-82a5-4f40-9c2b-1c239dea039a:Models/GridBase10x10 + Materials: {} + e892de73aae78041aa74ca19b0b9f867: !StaticColliderComponent + Id: 8754437a-3567-43ba-a987-361209c6213c + CanSleep: true + Restitution: 0.0 + Friction: 0.5 + RollingFriction: 0.0 + CcdMotionThreshold: 0.0 + CcdSweptSphereRadius: 0.0 + IsTrigger: false + AlwaysUpdateNaviMeshCache: false + ColliderShapes: + 6f9d4e7e5147bf47ad510aa5f27d122b: !BoxColliderShapeDesc + Is2D: false + Size: {X: 10.0, Y: 0.3, Z: 10.0} + LocalOffset: {X: 0.0, Y: -0.15, Z: 0.0} + LocalRotation: {X: 0.0, Y: 0.0, Z: 0.0, W: 1.0} + Base: + BasePartAsset: 56ef43aa-df99-4225-970c-d8fc613fcd3b:Prefabs/DefaultScenery + BasePartId: 76dbe8af-692a-45d5-8c9a-6fd390e04586 + InstanceId: 20b67e1c-1ee1-49f6-8812-a3c1c439fe36 - Folder: null Entity: Id: f4e71a61-7a88-4b67-b57c-8a46d7ba1a36 diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/CSharpIntermediate.Game/CSharpIntermediate.Game.csproj b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/CSharpIntermediate.Game/CSharpIntermediate.Game.csproj index eeca54556..dbe8d2260 100644 --- a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/CSharpIntermediate.Game/CSharpIntermediate.Game.csproj +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/CSharpIntermediate.Game/CSharpIntermediate.Game.csproj @@ -5,15 +5,15 @@ + - - + diff --git a/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/CSharpIntermediate.Game/Code/Navigation/Navigate.cs b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/CSharpIntermediate.Game/Code/Navigation/Navigate.cs new file mode 100644 index 000000000..3870b13d5 --- /dev/null +++ b/samples/Tutorials/CSharpIntermediate/CSharpIntermediate/CSharpIntermediate.Game/Code/Navigation/Navigate.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; +using CSharpIntermediate.Code.Extensions; +using Stride.Core.Mathematics; +using Stride.Engine; +using Stride.Graphics; +using Stride.Input; +using Stride.Navigation; +using Stride.Physics; + +namespace CSharpIntermediate.Code +{ + public class Navigate : SyncScript + { + public Entity RegularCharacter; + public Entity TargetSphere; + + private NavigationComponent navigationComponent; + private List currentPath = new(); + + public override void Start() + { + navigationComponent = Entity.Get(); + } + + public override void Update() + { + + DebugText.Print($"Left click to set Regular character target", new Int2(200, 20)); + + if (Input.IsMouseButtonPressed(MouseButton.Left)) + { + currentPath.Clear(); + + var backBuffer = GraphicsDevice.Presenter.BackBuffer; + var viewport = new Viewport(0, 0, backBuffer.Width, backBuffer.Height); + + var camera = Entity.Get(); + var nearPosition = viewport.Unproject(new Vector3(Input.AbsoluteMousePosition, 0.0f), camera.ProjectionMatrix, camera.ViewMatrix, Matrix.Identity); + var farPosition = viewport.Unproject(new Vector3(Input.AbsoluteMousePosition, 2.0f), camera.ProjectionMatrix, camera.ViewMatrix, Matrix.Identity); + + DebugText.Print(nearPosition.Print(), new Int2(20, 40)); + DebugText.Print(farPosition.Print(), new Int2(20, 50)); + + var hitResult = this.GetSimulation().Raycast(nearPosition, farPosition); + if (hitResult.Succeeded) + { + TargetSphere.Transform.Position = hitResult.Point; + + //if (navigationComponent.TryFindPath(hitResult.Point, currentPath)) + //{ + + //} + //else + //{ + // // A path couldn't be found using this navigation mesh + //} + } + } + } + + private void UpdateTarget(Entity tinyCharacter) + { + + } + } +}