Skip to content

Commit

Permalink
Use contraption anchor pos for wings
Browse files Browse the repository at this point in the history
  • Loading branch information
StewStrong committed Oct 28, 2023
1 parent 52b910b commit 3df498e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public Matrix4dc computeContraptionWingTransform() {
final AbstractContraptionEntity thisAsAbstractContraptionEntity = AbstractContraptionEntity.class.cast(this);
final Matrix3d rotationMatrix =
CreateConversionsKt.toJOML(thisAsAbstractContraptionEntity.getRotationState().asMatrix());
final Vector3d pos = VectorConversionsMCKt.toJOML(thisAsAbstractContraptionEntity.position());
final Vector3d pos = VectorConversionsMCKt.toJOML(thisAsAbstractContraptionEntity.getAnchorVec());
return new Matrix4d(rotationMatrix).setTranslation(pos);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Matrix4dc computeContraptionWingTransform() {
final AbstractContraptionEntity thisAsAbstractContraptionEntity = AbstractContraptionEntity.class.cast(this);
final Matrix3d rotationMatrix =
CreateConversionsKt.toJOML(thisAsAbstractContraptionEntity.getRotationState().asMatrix());
final Vector3d pos = VectorConversionsMCKt.toJOML(thisAsAbstractContraptionEntity.position());
final Vector3d pos = VectorConversionsMCKt.toJOML(thisAsAbstractContraptionEntity.getAnchorVec());
return new Matrix4d(rotationMatrix).setTranslation(pos);
}
}

0 comments on commit 3df498e

Please sign in to comment.