# Get a Vector3 from a Matrix and other Vector 3

**URL:** <https://forum.babylonjs.com/t/get-a-vector3-from-a-matrix-and-other-vector-3/39849>\
**Category:** Questions\
**Created:** [April 13, 2023, 8:54am UTC](https://forum.babylonjs.com/t/get-a-vector3-from-a-matrix-and-other-vector-3/39849 "2023-04-13T08:54:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darth\_Luis](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/darth_luis/32/30595_2.png) [@Darth\_Luis](https://forum.babylonjs.com/u/Darth_Luis)\
**Post date:** [April 13, 2023, 8:54am UTC](https://forum.babylonjs.com/t/get-a-vector3-from-a-matrix-and-other-vector-3/39849/1 "2023-04-13T08:54:56Z")

</div>

Good morning,  
I need to get a Vector3 from the multiplication of a 3x3 Matrix and another Vector 3. I know each componet from the matrix so I thought that defining it using Matrix.FromValue will be the best way. Then I found that FromValue only creates a 4x4 matrix so I try to use the matrix.GetAsMatrix3x3 but the result is not a matrix so I can’t use it.  
I don’t know who to do it any more. Someone can recommend me a way to do it please.  
I attach the playground where I was trying it.

> **[Babylon.js Playground](https://playground.babylonjs.com/#GGUZ4F)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [April 13, 2023, 10:01am UTC](https://forum.babylonjs.com/t/get-a-vector3-from-a-matrix-and-other-vector-3/39849/2 "2023-04-13T10:01:24Z")

</div>

`TransformNormal` and `TransformCoordinates` need a Matrix (which is a Matrix4)

---

<div class="post-metadata">

**Author:** ![Darth\_Luis](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/darth_luis/32/30595_2.png) [@Darth\_Luis](https://forum.babylonjs.com/u/Darth_Luis)\
**Post date:** [April 13, 2023, 10:10am UTC](https://forum.babylonjs.com/t/get-a-vector3-from-a-matrix-and-other-vector-3/39849/3 "2023-04-13T10:10:30Z")

</div>

I know, but when I changed it to use the matrix4 and I use the result to move the sphere, it disappeared!

> **[Babylon.js Playground](https://playground.babylonjs.com/#GGUZ4F%231)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [April 13, 2023, 11:19am UTC](https://forum.babylonjs.com/t/get-a-vector3-from-a-matrix-and-other-vector-3/39849/4 "2023-04-13T11:19:11Z")

</div>

`FromValues` receives a sequence of values, not an array 🙂 [MATRIX | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#GGUZ4F#2)
