< Summary

Information
Class: Gravitas.Constraints.JointConstraintRow3D
Assembly: Gravitas
File(s): /home/runner/work/Gravitas/Gravitas/src/Gravitas/Constraints/3D/Joints/JointConstraintRow3D.cs
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 52
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/Gravitas/Gravitas/src/Gravitas/Constraints/3D/Joints/JointConstraintRow3D.cs

#LineLine coverage
 1//=======================================================================
 2// JointConstraintRow3D.cs
 3//=======================================================================
 4// MIT License, Copyright (c) 2026-present David Oravsky (mrdav30)
 5// See LICENSE file in the project root for full license information.
 6//=======================================================================
 7
 8using FixedMathSharp;
 9
 10namespace Gravitas.Constraints;
 11
 12
 13
 14/// <summary>
 15/// Stores a spatial joint row with its anchors, impulse limits, and warm-start state.
 16/// </summary>
 17internal struct JointConstraintRow3D
 18{
 19    public JointConstraintRow3D(
 20        JointConstraintRowKind3D kind,
 21        Vector3d axis,
 22        Vector3d relativeAnchorA,
 23        Vector3d relativeAnchorB,
 24        Fixed64 biasVelocity,
 25        Fixed64 damping,
 26        Fixed64 lowerImpulse,
 27        Fixed64 upperImpulse,
 28        int cacheIndex)
 29    {
 38799130        Kind = kind;
 38799131        Axis = axis;
 38799132        RelativeAnchorA = relativeAnchorA;
 38799133        RelativeAnchorB = relativeAnchorB;
 38799134        BiasVelocity = biasVelocity;
 38799135        Damping = damping;
 38799136        LowerImpulse = lowerImpulse;
 38799137        UpperImpulse = upperImpulse;
 38799138        CacheIndex = cacheIndex;
 38799139        AccumulatedImpulse = Fixed64.Zero;
 38799140    }
 41
 42    public JointConstraintRowKind3D Kind;
 43    public Vector3d Axis;
 44    public Vector3d RelativeAnchorA;
 45    public Vector3d RelativeAnchorB;
 46    public Fixed64 BiasVelocity;
 47    public Fixed64 Damping;
 48    public Fixed64 LowerImpulse;
 49    public Fixed64 UpperImpulse;
 50    public int CacheIndex;
 51    public Fixed64 AccumulatedImpulse;
 52}