boompack: fix PictureTransformation

..too not leak out of bounding box.
shapetextures
David Dormagen 2015-12-26 18:21:01 +01:00
parent 42cf57afb6
commit 124337a5b5
1 changed files with 8 additions and 7 deletions

View File

@ -190,10 +190,7 @@ public func OnMount(clonk)
riderattach = AttachMesh(clonk, "main", "pos_tool1", Trans_Mul(Trans_Translate(-1000,2000*iDir,2000), Trans_Rotate(-90*iDir,1,0,0)));
//Modify picture transform to fit icon on clonk mount
//clean pic transform rotations
SetProperty("PictureTransformation", Trans_Mul(Trans_Rotate(0,1,0,0), Trans_Rotate(0,0,0,1), Trans_Rotate(0,0,1,0)));
//apply the new one
SetProperty("PictureTransformation", Trans_Mul(Trans_Translate(5000 * clonk->GetDir(),0,0), Trans_Rotate(-20,1,0,0), Trans_Rotate(0,0,0,1), Trans_Rotate(0,0,1,0), Trans_Scale(700)));
this.PictureTransformation = Trans_Mul(Trans_Translate(5000 * clonk->GetDir(),0,0), Trans_Rotate(-20,1,0,0), Trans_Rotate(0,0,0,1), Trans_Rotate(0,0,1,0), Trans_Scale(700));
return true;
}
@ -281,10 +278,14 @@ func OnProjectileHit()
func IsInventorProduct() { return true; }
private func DefaultPicTransform() { return SetProperty("PictureTransformation", Trans_Mul(Trans_Rotate(30,0,0,1),Trans_Rotate(-30,1,0,0),Trans_Scale(1300))); }
private func DefaultPicTransform()
{
this.PictureTransformation = this.Prototype.PictureTransformation;
}
func Definition(def) {
DefaultPicTransform();
public func Definition(def)
{
def.PictureTransformation = Trans_Mul(Trans_Translate(-3000, -1000, 0), Trans_Rotate(45,0,0,1),Trans_Rotate(-35,1,0,0),Trans_Scale(1200));
}
local Collectible = true;