# Width and height doesn't work with matrix3D

**URL:** <https://forum.kirupa.com/t/width-and-height-doesnt-work-with-matrix3d/302434>\
**Category:** Uncategorized\
**Created:** [December 30, 2009, 4:37pm UTC](https://forum.kirupa.com/t/width-and-height-doesnt-work-with-matrix3d/302434 "2009-12-30T16:37:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![enridp](https://avatars.discourse-cdn.com/v4/letter/e/6f9a4e/32.png) [@enridp](https://forum.kirupa.com/u/enridp)\
**Post date:** [December 30, 2009, 4:37pm UTC](https://forum.kirupa.com/t/width-and-height-doesnt-work-with-matrix3d/302434/1 "2009-12-30T16:37:01Z")

</div>

Hi !  
I think I found a big bug or I’m making a big error.  
How can we control the width and height of a DisplayObject with matrix3D != null?

See this example:

```auto
trace("mc.width = " + mc.width); //mc.width = 163.95
trace("mc.height = " + mc.height); //mc.height = 129
mc3D.rotationY = 45;
trace("mc3D.width = " + mc3D.width); //mc3D.width = 126
trace("mc3D.height = " + mc3D.height); //mc3D.height = 166
mc3D.width = 300;
mc3D.height = 200;
trace("mc3D.width = " + mc3D.width); //mc3D.width = 313
trace("mc3D.height = " + mc3D.height); //mc3D.height = 209

```

Why if I’m assigning a value to width and height I’m reading a different value? How can we then control the width and height of a 3D Object?

Thanks !!  
Enrique.
