Table of Contents

Class SceneBasedSimulationSelector

Namespace
Stride.BepuPhysics.Definitions
Assembly
Stride.BepuPhysics.dll

This selector picks the simulation based on the scene the entity lives in, see AssociatedScene.

[DataContract]
public record SceneBasedSimulationSelector : ISimulationSelector, IEquatable<SceneBasedSimulationSelector>
Inheritance
SceneBasedSimulationSelector
Implements

Remarks

- Pick the first simulation whose scene matches the entity's scene.

- If that fails, the first simulation whose scene is null.

- If that failed too, The first simulation in the list.

Fields

Shared

A read only instance which you can use instead of newing an instance

public static readonly SceneBasedSimulationSelector Shared

Field Value

SceneBasedSimulationSelector

Methods

Pick(BepuConfiguration, Entity)

Go through available simulations and pick the most appropriate one for target

public BepuSimulation Pick(BepuConfiguration configuration, Entity target)

Parameters

configuration BepuConfiguration
target Entity

Returns

BepuSimulation