Basic 3D Scene (Capsule)
Create a minimal 3D scene using toolkit helpers, add a skybox, and place a single capsule primitive. Demonstrates primitive creation, basic positioning, and attaching the entity to the scene.
The Program.cs file shows how to:
- Creating a 3D primitive with CreatePrimitive
- Positioning an entity with Transform.Position
- Adding entities to a Scene (rootScene)
- Using helpers: SceneSetup3D, UseSkybox

View on GitHub.
using Stride.CommunityToolkit.Bepu;
using Stride.CommunityToolkit.Engine;
using Stride.CommunityToolkit.Rendering.ProceduralModels;
using Stride.CommunityToolkit.Skyboxes;
using Stride.Core.Mathematics;
using Stride.Engine;
using var game = new Game();
game.Run(new SceneSetup3D().UseBepu().UseSkybox(), start: Start);
void Start(Scene rootScene)
{
var entity = game.CreatePrimitive(Primitive3D.Capsule());
entity.Transform.Position = new Vector3(0, 8, 0);
entity.Scene = rootScene;
}