Table of Contents

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

game Game
entityName string
size Vector2?
includeCollider bool

Returns

Entity

Create2DPrimitive(IGame, Primitive2DModelType, Primitive2DCreationOptions?)

public static Entity Create2DPrimitive(this IGame game, Primitive2DModelType type, Primitive2DCreationOptions? options = null)

Parameters

game IGame
type Primitive2DModelType
options Primitive2DCreationOptions

Returns

Entity

Create3DPrimitive(IGame, PrimitiveModelType, Primitive3DCreationOptions?)

public static Entity Create3DPrimitive(this IGame game, PrimitiveModelType type, Primitive3DCreationOptions? options = null)

Parameters

game IGame
type PrimitiveModelType
options Primitive3DCreationOptions

Returns

Entity

SetupBase2DScene(Game)

public static void SetupBase2DScene(this Game game)

Parameters

game Game

SetupBase3DScene(Game)

public static void SetupBase3DScene(this Game game)

Parameters

game Game