Class SceneSetupExtensions
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
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().UseBepu(), start: Start);