# PickingInfo.getNormal() of a custom mesh

**URL:** <https://forum.babylonjs.com/t/pickinginfo-getnormal-of-a-custom-mesh/39621>\
**Category:** Questions\
**Created:** [April 4, 2023, 5:04pm UTC](https://forum.babylonjs.com/t/pickinginfo-getnormal-of-a-custom-mesh/39621 "2023-04-04T17:04:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jozef\_Plata](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jozef_plata/32/30733_2.png) [@Jozef\_Plata](https://forum.babylonjs.com/u/Jozef_Plata)\
**Post date:** [April 4, 2023, 5:04pm UTC](https://forum.babylonjs.com/t/pickinginfo-getnormal-of-a-custom-mesh/39621/1 "2023-04-04T17:04:50Z")

</div>

Hi,

How can I get the normal (using PickingInfo) of a custom imported mesh? It does work on any of the primitives created with MeshBuilder. But I don’t get proper normals on imported meshes.

Here’s an example. The Normal should be `[0, 0.899144, -0.437652]`. Instead I get `[0, -1, 0]`.

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

---

<div class="post-metadata">

**Author:** ![Jozef\_Plata](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jozef_plata/32/30733_2.png) [@Jozef\_Plata](https://forum.babylonjs.com/u/Jozef_Plata)\
**Post date:** [April 4, 2023, 6:00pm UTC](https://forum.babylonjs.com/t/pickinginfo-getnormal-of-a-custom-mesh/39621/2 "2023-04-04T18:00:14Z")

</div>

Ok, so when I started to debug this inside my project I realised I actually have to wrap the ray casting into one of the scene render hooks, eg:

```auto

            scene.registerBeforeRender(() => {
                const ray = new BABYLON.Ray(new BABYLON.Vector3(0, 3, 0), BABYLON.Vector3.Down(), 3);
                const rayHelper = new BABYLON.RayHelper(ray);
                rayHelper.show(scene, new BABYLON.Color3(1, 0, 0));
                const pick = ray.intersectsMesh(ground);

                const normal = pick.getNormal();
                console.log('Normal:', normal);
            })

```

Solved! 🙂
