well, thought it worked , but i does not work as intended ?
event-listner, listen to the mouse move on a div , and when its on the div , move the div ,
if its not on the div then transition back to the original position with ease,
so this is what i am trying to do ,
but with the gltf object raycaster ,
while the mouse is on the selected Gltf object (which is the raycaster loop),
then move the gltf object forward to a specified position , ( which is working )
if not on the selected GLTF object , transition with ease to the original position ,
which i am not able achieve ?
what i have got so far is while on the selected GLTF object and if the mouse pointer Y is at a certain value , the gltf object moves forward,
but unable to get it transitioning to its original position , tried the lerp function for this , does not seem to work
I am absolutely sure this must have be a a simple function call for this , or a method to do this