This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class EntityExtensions | |
| { | |
| public static void LookAt(this Entity e, Vector3 target) | |
| { | |
| float azimuth = GetLookAtAngles(e.Transform.Position, target, out float altitude); | |
| var result = Quaternion.RotationYawPitchRoll(azimuth, -altitude, 0); | |
| e.Transform.Rotation = result; | |
| } | |
| public static Vector3 Position(this Entity e) => e.Transform.Position; | |
| private static float GetLookAtAngles(Vector3 source, Vector3 destination, out float altitude) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Stride.Core.Mathematics; | |
| using Stride.Engine; | |
| using Stride.Input; | |
| namespace SomeNameSpace | |
| { | |
| public class CameraFollow : SyncScript | |
| { | |
| public float DelaySpeed = 0.6f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright (c) Xenko contributors (https://xenko.com) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) | |
| // Distributed under the MIT license. See the LICENSE.md file in the project root for more information. | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Threading.Tasks; | |
| using Xenko.Core.Mathematics; | |
| using Xenko.Assets.Presentation.AssetEditors.EntityHierarchyEditor.Game; | |
| using Xenko.Assets.Presentation.AssetEditors.GameEditor; | |
| using Xenko.Assets.Presentation.AssetEditors.GameEditor.Game; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Xenko.Core.Mathematics; | |
| using Xenko.Engine; | |
| using Xenko.Extensions; | |
| using Xenko.Graphics; | |
| using Xenko.Graphics.GeometricPrimitives; | |
| using Xenko.Rendering; | |
| using XenkoTerrain.Extensions; | |
| using System.Collections.Generic; | |
| namespace XenkoTerrain.Graphics |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using SiliconStudio.Core.Mathematics; | |
| using SiliconStudio.Xenko.Engine; | |
| using SiliconStudio.Xenko.Graphics; | |
| using SiliconStudio.Xenko.UI; | |
| using SiliconStudio.Xenko.UI.Controls; | |
| using SiliconStudio.Xenko.UI.Panels; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Linq; | |
| using System.Reflection; | |
| using Autofac; | |
| using Autofac.Core; | |
| using Stride.Engine; | |
| namespace GameApp | |
| { | |
| internal static void Main(string[] args) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Stride.Core; | |
| using Stride.Core.Mathematics; | |
| using Stride.Engine; | |
| using Stride.Input; | |
| using Stride.UI; | |
| using Stride.UI.Controls; | |
| using Stride.UI.Events; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Stride.Core.Mathematics; | |
| using Stride.Engine; | |
| using Stride.GameDefaults.ProceduralModels; | |
| using Stride.GameDefaults.Extensions; | |
| using Stride.Physics; | |
| using Stride.Input; | |
| using (var game = new Game()) | |
| { | |
| game.Run(start: Start); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Project | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.IO; | |
| using Stride.Core; | |
| using Stride.Core.Annotations; | |
| using Stride.Core.Mathematics; | |
| using Stride.Core.Yaml; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using SiliconStudio.Core.Mathematics; | |
| using SiliconStudio.Xenko.Input; | |
| using SiliconStudio.Xenko.Engine; | |
| using SiliconStudio.Xenko.Rendering; | |
| using SiliconStudio.Xenko.Rendering.Materials; |
NewerOlder