< Summary

Information
Class: Gravitas.Constraints.JointConstraintRow3D
Assembly: Gravitas
File(s): /home/runner/work/Gravitas/Gravitas/src/Gravitas/Constraints/3D/JointConstraintRow3D.cs
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 54
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/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
 12internal enum JointConstraintRowKind3D : byte
 13{
 14    Linear,
 15    Angular,
 16    Motor
 17}
 18
 19internal struct JointConstraintRow3D
 20{
 21    public JointConstraintRow3D(
 22        JointConstraintRowKind3D kind,
 23        Vector3d axis,
 24        Vector3d relativeAnchorA,
 25        Vector3d relativeAnchorB,
 26        Fixed64 biasVelocity,
 27        Fixed64 damping,
 28        Fixed64 lowerImpulse,
 29        Fixed64 upperImpulse,
 30        int cacheIndex)
 31    {
 16097232        Kind = kind;
 16097233        Axis = axis;
 16097234        RelativeAnchorA = relativeAnchorA;
 16097235        RelativeAnchorB = relativeAnchorB;
 16097236        BiasVelocity = biasVelocity;
 16097237        Damping = damping;
 16097238        LowerImpulse = lowerImpulse;
 16097239        UpperImpulse = upperImpulse;
 16097240        CacheIndex = cacheIndex;
 16097241        AccumulatedImpulse = Fixed64.Zero;
 16097242    }
 43
 44    public JointConstraintRowKind3D Kind;
 45    public Vector3d Axis;
 46    public Vector3d RelativeAnchorA;
 47    public Vector3d RelativeAnchorB;
 48    public Fixed64 BiasVelocity;
 49    public Fixed64 Damping;
 50    public Fixed64 LowerImpulse;
 51    public Fixed64 UpperImpulse;
 52    public int CacheIndex;
 53    public Fixed64 AccumulatedImpulse;
 54}