# How to determine the end point of LerpToRef?

**URL:** <https://forum.babylonjs.com/t/how-to-determine-the-end-point-of-lerptoref/47248>\
**Category:** Questions\
**Tags:** vector3\
**Created:** [January 16, 2024, 6:47am UTC](https://forum.babylonjs.com/t/how-to-determine-the-end-point-of-lerptoref/47248 "2024-01-16T06:47:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![late-autumn-give-ear](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/late-autumn-give-ear/32/36485_2.png) [@late-autumn-give-ear](https://forum.babylonjs.com/u/late-autumn-give-ear)\
**Post date:** [January 16, 2024, 6:47am UTC](https://forum.babylonjs.com/t/how-to-determine-the-end-point-of-lerptoref/47248/1 "2024-01-16T06:47:17Z")

</div>

This might be a silly question.  
I want the sphere to do something after the LerpToRef.Is there a way to do this if I don’t use Animation and just rely on LerpToRef?  
thanks a lot！

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

---

<div class="post-metadata">

**Author:** ![musk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/musk/32/17156_2.png) [@musk](https://forum.babylonjs.com/u/musk)\
**Post date:** [January 16, 2024, 8:07am UTC](https://forum.babylonjs.com/t/how-to-determine-the-end-point-of-lerptoref/47248/2 "2024-01-16T08:07:32Z")

</div>

How to add a function to solve the precision problem of JavaScript ?

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

---

<div class="post-metadata">

**Author:** ![late-autumn-give-ear](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/late-autumn-give-ear/32/36485_2.png) [@late-autumn-give-ear](https://forum.babylonjs.com/u/late-autumn-give-ear)\
**Post date:** [January 16, 2024, 8:47am UTC](https://forum.babylonjs.com/t/how-to-determine-the-end-point-of-lerptoref/47248/3 "2024-01-16T08:47:48Z")

</div>

Thank you very much. It works for me！
