mirror of
https://github.com/haselkern/Minecraft-ArmorStand.git
synced 2025-05-18 05:55:35 +00:00
Model Scales If Set As Small
This commit is contained in:
parent
176cb53e1f
commit
0be91b783b
1 changed files with 6 additions and 0 deletions
6
main.js
6
main.js
|
@ -308,6 +308,12 @@ function updateUI(){
|
||||||
mArmRight.rotation.set(rightArm.x * DEG2RAD, -rightArm.y * DEG2RAD, -rightArm.z * DEG2RAD);
|
mArmRight.rotation.set(rightArm.x * DEG2RAD, -rightArm.y * DEG2RAD, -rightArm.z * DEG2RAD);
|
||||||
armorstand.rotation.y = -rotation * DEG2RAD;
|
armorstand.rotation.y = -rotation * DEG2RAD;
|
||||||
|
|
||||||
|
// Scale model, depending on small variable
|
||||||
|
if(small)
|
||||||
|
armorstand.scale.set(0.6, 0.6, 0.6);
|
||||||
|
else
|
||||||
|
armorstand.scale.set(1, 1, 1);
|
||||||
|
|
||||||
//Set Visibility
|
//Set Visibility
|
||||||
mArmRight.visible = mArmLeft.visible = showArms;
|
mArmRight.visible = mArmLeft.visible = showArms;
|
||||||
mBasePlate.visible = !noBasePlate;
|
mBasePlate.visible = !noBasePlate;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue