Class GameExtensions
- Namespace
- Stride.CommunityToolkit.Bepu
- Assembly
- Stride.CommunityToolkit.Bepu.dll
public static class GameExtensions
- Inheritance
-
GameExtensions
Methods
Add3DGround(Game, string?, Vector2?, bool)
public static Entity Add3DGround(this Game game, string? entityName = "Ground", Vector2? size = null, bool includeCollider = true)
Parameters
Returns
Create2DPrimitive(IGame, Primitive2DModelType, Primitive2DCreationOptions?)
public static Entity Create2DPrimitive(this IGame game, Primitive2DModelType type, Primitive2DCreationOptions? options = null)
Parameters
game
IGametype
Primitive2DModelTypeoptions
Primitive2DCreationOptions
Returns
Create3DPrimitive(IGame, PrimitiveModelType, Primitive3DCreationOptions?)
public static Entity Create3DPrimitive(this IGame game, PrimitiveModelType type, Primitive3DCreationOptions? options = null)
Parameters
game
IGametype
PrimitiveModelTypeoptions
Primitive3DCreationOptions
Returns
SetupBase2DScene(Game)
public static void SetupBase2DScene(this Game game)
Parameters
game
Game
SetupBase3DScene(Game)
public static void SetupBase3DScene(this Game game)
Parameters
game
Game