Rotate Custom Baked Model #1975
-
Hi all, I've got a custom baked model that I'm trying to get to rotate with a block that extends {
"variants": {
"facing=north": { "model": "arborealis:block/hollowed_log_model", "uvlock": true},
"facing=east": { "model": "arborealis:block/hollowed_log_model", "y": 90, "uvlock": true },
"facing=south": { "model": "arborealis:block/hollowed_log_model", "y": 180, "uvlock": true },
"facing=west": { "model": "arborealis:block/hollowed_log_model", "y": 270, "uvlock": true }
}
} I have rotated another model using Please let me know if I'm massively overthinking this and there's an easy solution (or if I've done the blockstate wrong in some way). All code is in the below repository, with the baked model and block classes I'm working with linked specifically: Many thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
My friend and I spent the last few hours scouring the source code, and developed a solution that uses a QuadTransform to rotate a custom baked model according to a direction. Here's a few snippets for whoever wants to recreate this effect in the future - hopefully with a bit less pain and maths than we went through.
"Attempt No. 37" ~ 2022, colourised
Implementing the transform: