SwitchCraftCC/sc-peripherals

3d print seat position is not taking in consideration print rotation.

Closed this issue · 0 comments

When creating 3d print and defining sitting position it seems that it is applied always from one specific rotation instead of applying object placement rotation.

Reproduction steps and visualisation:

{
  "label": "Stairs Seat",
  "tooltip": "Fancy Seat! What more you want?",
  "lightLevel": 0,
  "redstoneLevel": 0,
  "seatPos": [0.1, 0.7, 0.5],
  "shapesOff": [
    { "bounds": [0, 0, 0, 16, 8, 16], "texture": "minecraft:block/dark_oak_planks"},
    { "bounds": [0, 0, 8, 16, 16, 16], "texture": "minecraft:block/dark_oak_planks"}
  ],
  "shapesOn": []
}

Here we see 2 copies of same print using above 3dj
obraz
If i sit on left one i will be sitting on front part of the stair.
obraz
If i sit on right one i will be sitting on side of it.
obraz

Expected result:

For seatPos to be rotated alongside with block placed rotation so no matter which direction i place it i would sit on same part of 3d print.