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