mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-13 15:56:07 +01:00
Do a 180
- Fix inconsistency in minecart model
This commit is contained in:
parent
79fe04c6ab
commit
3a4fb0e43d
2 changed files with 7 additions and 1 deletions
|
@ -136,6 +136,12 @@ public class PartBuilder {
|
|||
return this;
|
||||
}
|
||||
|
||||
public CuboidBuilder rotateZ(float z) {
|
||||
useRotation = true;
|
||||
this.rotationZ = z;
|
||||
return this;
|
||||
}
|
||||
|
||||
public CuboidBuilder sprite(TextureAtlasSprite sprite) {
|
||||
this.sprite = sprite;
|
||||
return this;
|
||||
|
|
|
@ -156,7 +156,7 @@ public class MinecartInstance<T extends AbstractMinecart> extends EntityInstance
|
|||
private IModel getBodyModel() {
|
||||
int y = -3;
|
||||
return ModelPart.builder("minecart", 64, 32)
|
||||
.cuboid().invertYZ().start(-10, -8, -y).size(20, 16, 2).textureOffset(0, 10).rotateX(((float)Math.PI / 2F)).endCuboid()
|
||||
.cuboid().invertYZ().start(-10, -8, -y).size(20, 16, 2).textureOffset(0, 10).rotateZ((float) Math.PI).rotateX(((float)Math.PI / 2F)).endCuboid()
|
||||
.cuboid().invertYZ().start(-8, y, -10).size(16, 8, 2).rotateY(((float)Math.PI * 1.5F)).endCuboid()
|
||||
.cuboid().invertYZ().start(-8, y, -10).size(16, 8, 2).rotateY(((float)Math.PI / 2F)).endCuboid()
|
||||
.cuboid().invertYZ().start(-8, y, -8).size(16, 8, 2).rotateY((float)Math.PI).endCuboid()
|
||||
|
|
Loading…
Reference in a new issue