Table of Contents

Struct ConstraintReference

Namespace
BepuPhysics
Assembly
BepuPhysics.dll

Reference to a constraint's memory location in the solver.

public struct ConstraintReference
Inherited Members

Constructors

ConstraintReference(TypeBatch*, int)

Creates a new constraint reference from a constraint memory location.

public ConstraintReference(TypeBatch* typeBatchPointer, int indexInTypeBatch)

Parameters

typeBatchPointer TypeBatch*

Pointer to the type batch where the constraint lives.

indexInTypeBatch int

Index in the type batch where the constraint is allocated.

Fields

IndexInTypeBatch

Index in the type batch where the constraint is allocated.

public readonly int IndexInTypeBatch

Field Value

int

Properties

TypeBatch

Gets a reference to the type batch holding the constraint.

public ref TypeBatch TypeBatch { get; }

Property Value

TypeBatch