Skip to content

Commit

Permalink
Update server/core/src/main/java/dev/slimevr/tracking/processor/Const…
Browse files Browse the repository at this point in the history
…raint.kt

Co-authored-by: Uriel <[email protected]>
  • Loading branch information
Stermere and ImUrX authored Jul 26, 2024
1 parent 63e6eff commit 8e09489
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,7 @@ class Constraint(
val magnitudeSqr = abs(if (distToMin < distToMax) magnitudeSqrMin else magnitudeSqrMax)
vector = vector.unit() * -magnitude

rot = Quaternion(
sqrt(1.0f - magnitudeSqr),
vector.x,
vector.y,
vector.z,
)
rot = Quaternion(sqrt(1.0f - magnitudeSqr), vector)
}

return rot.unit()
Expand Down

0 comments on commit 8e09489

Please sign in to comment.