Class SceneSetupExtensions
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
setupTThe setup to change.
Returns
- T
The same setup.
Type Parameters
TThe setup's type, kept so the call chains.
Examples
game.Run(new SceneSetup3D().UseBullet(), start: Start);