Bruh
what the fuck does “Force the first axis of rotation (with respect to localRot0 and localRot1) of two bodies to be the same” even mean
oh my bad, I thought bruh meant “I did it!” in your mentality
It would help to have the function signature associated with that, but here it looks like it is making a hinge constraint along the two x axis of the ships
val cdir = (rpoint2 - rpoint1).snormalize()
val x = Vector3d(1.0, 0.0, 0.0)
val xCross = Vector3d(cdir).scross(x)
val hRot = if (xCross.sqrDist() < 1e-6) {
Quaterniond()
} else {
Quaterniond(AxisAngle4d(cdir.toJomlVector3d().angle(x.toJomlVector3d()), xCross.snormalize().toJomlVector3d()))
}
rconstraint = VSHingeOrientationConstraint(shipId0, shipId1, compliance, hRot, hRot, maxForce)
3 replies not shown · View on Discord
:clueless: