w0rm / elm-physics

3D physics engine in Elm
https://package.elm-lang.org/packages/w0rm/elm-physics/latest
BSD 3-Clause "New" or "Revised" License
146 stars 12 forks source link

Does Physics.Constraint.pointToPoint constrain relative rotation? #74

Closed MartinSStewart closed 4 years ago

MartinSStewart commented 4 years ago

Reading the documentation for Physics.Constraint.pointToPoint it isn't clear to me if it behaves like a weld joint or a ball joint. I'm guessing the two objects can freely rotate (unless they collide with eachother) but maybe the documentation could be explicit about this behavior?

w0rm commented 4 years ago

@MartinSStewart your guess is correct, it only locks two points, but doesn't lock the rotation, so that two objects can freely rotate.