Example #1
0
 static public Vector3 GetExtents(this MeshFilter item)
 {
     return(item.GetSize() * 0.5f);
 }
Example #2
0
 static public void SetDimension(this MeshFilter item, Axis axis, float length)
 {
     item.SetSize(item.GetSize().GetWith(axis, length));
 }
Example #3
0
 static public void SetDepth(this MeshFilter item, float depth)
 {
     item.SetSize(item.GetSize().GetWithZ(depth));
 }
Example #4
0
 static public void SetHeight(this MeshFilter item, float height)
 {
     item.SetSize(item.GetSize().GetWithY(height));
 }
Example #5
0
 static public void SetWidth(this MeshFilter item, float width)
 {
     item.SetSize(item.GetSize().GetWithX(width));
 }
Example #6
0
 static public Bounds GetBounds(this MeshFilter item)
 {
     return(new Bounds(item.GetSpacarPosition(), item.GetSize()));
 }