- Home /
Question by
rythembreak · Jun 08, 2018 at 01:48 PM ·
lerpz axisx axis
Only Lerp 2 coordinates
Hello guys, I'm working right now on a AR app (basicly a checkers game) and have some trouble with lerping objects. I have got a really long cylindric object which, is my "cursor", with which i can choose my checkers token and drag to another position. My problem is, that when I want to drag a token, it attaches to the end of my "cursor", which is behind the PlayBoard. I want the token just to lift up from the GameBoard for like 2 units in y-direction and only lerp the x and z coordinates. How do I manage that?
(this if statement is in the Update() function of my PointerScript)
unity.jpg
(22.5 kB)
Comment