Example #1
0
 public BillboardObject MakeBillboardObject(MyVector position, float size)
 {
     BillboardObject obj = new BillboardObject(position, cameraUp * (size / 2), cameraRight * (size / 2));
     return obj;
 }
Example #2
0
 public BillboardObject MakeBillboardObject(MyVector position, float width, float height)
 {
     BillboardObject obj = new BillboardObject(position, cameraUp * (height / 2), cameraRight * (width / 2));
     return obj;
 }
        public BillboardObject Clone()
        {
            BillboardObject obj = new BillboardObject();

            this.verts.CopyTo(obj.verts, 0);
            obj.position = this.position;
            obj.scale = this.scale;
            return obj;
        }