Table of Contents

Class SceneSetupExtensions

Namespace
Stride.CommunityToolkit.Bullet
Assembly
Stride.CommunityToolkit.Bullet.dll

Chooses Bullet as the physics engine of a scene setup.

public static class SceneSetupExtensions
Inheritance
SceneSetupExtensions

Methods

UseBullet<T>(T)

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

public static T UseBullet<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().UseBullet(), start: Start);