Class IndexBasedSimulationSelector
- Namespace
- Stride.BepuPhysics.Definitions
- Assembly
- Stride.BepuPhysics.dll
This selector picks the simulation based on the simulation index
[DataContract]
public record IndexBasedSimulationSelector : ISimulationSelector, IEquatable<IndexBasedSimulationSelector>
- Inheritance
-
IndexBasedSimulationSelector
- Implements
Properties
Index
public int Index { get; init; }
Property Value
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
BepuConfigurationtarget
Entity