forked from Kolyah35/minecraft-pe-0.6.1
31 lines
662 B
C++
Executable File
31 lines
662 B
C++
Executable File
#include "CowModel.h"
|
|
|
|
CowModel::CowModel()
|
|
: super(12, 0)
|
|
{
|
|
head = ModelPart(0, 0);
|
|
head.setModel(this);
|
|
head.addBox(-4, -4, -6, 8, 8, 6, 0); // Head
|
|
head.setPos(0, 12 - 6 - 2, -8);
|
|
|
|
head.texOffs(22, 0).addBox(-5, -5, -4, 1, 3, 1, 0); // Horn1
|
|
head.texOffs(22, 0).addBox(+4, -5, -4, 1, 3, 1, 0); // Horn1
|
|
|
|
body = ModelPart(18, 4);
|
|
body.setModel(this);
|
|
body.addBox(-6, -10, -7, 12, 18, 10, 0); // Body
|
|
body.setPos(0, 11 + 6 - 12, 2);
|
|
body.texOffs(52, 0).addBox(-2, 2, -8, 4, 6, 1);
|
|
|
|
leg0.x -= 1;
|
|
leg1.x += 1;
|
|
leg0.z += 0;
|
|
leg1.z += 0;
|
|
leg2.x -= 1;
|
|
leg3.x += 1;
|
|
leg2.z -= 1;
|
|
leg3.z -= 1;
|
|
|
|
this->zHeadOffs += 2;
|
|
}
|