Table of Contents

Interface ISortKeyGenerator<TBodyReferences>

Namespace
BepuPhysics.Constraints
Assembly
BepuPhysics.dll

Defines a function that creates a sort key from body references in a type batch. Used by constraint layout optimization.

public interface ISortKeyGenerator<TBodyReferences> where TBodyReferences : unmanaged

Type Parameters

TBodyReferences

Methods

GetSortKey(int, ref Buffer<TBodyReferences>)

public static abstract int GetSortKey(int constraintIndex, ref Buffer<TBodyReferences> bodyReferences)

Parameters

constraintIndex int
bodyReferences Buffer<TBodyReferences>

Returns

int