Table of Contents

Class SceneSetupExtensions

Namespace
Stride.CommunityToolkit.Bepu
Assembly
Stride.CommunityToolkit.Bepu.dll

Chooses Bepu as the physics engine of a scene setup.

public static class SceneSetupExtensions
Inheritance
SceneSetupExtensions

Methods

UseBepu<T>(T)

Makes Bepu the physics engine of the setup: CreatePrimitive attaches Bepu bodies and the ground a Bepu static collider.

public static T UseBepu<T>(this T setup) where T : SceneSetup

Parameters

setup T

The setup to change.

Returns

T

The same setup.

Type Parameters

T

The setup's type, kept so the call chains.

Examples

game.Run(new SceneSetup3D().UseBepu(), start: Start);