Jump to content

Need help with 'lerp'


extenz
 Share

Recommended Posts

Hi,

I'm trying make my fov lerp from 90 to 110 while spriting to make it look cool but it does not seem to be working sad.png

 

708701d17cd0d91f7c340f292fc7c9a6.png

 

I tried using Math::Lerp instead of Math:Lerp but it didn't change anything.

 

PS: I bought Leadwerks a few hours ago so I'm still learning stuff, it's also my first time encountering Lua

Link to comment
Share on other sites

It might also help to change the first value (the 90) into self.camera:GetFOV() so that the lerping will work better

  • Upvote 1

Using Leadwerks Professional Edition (Beta), mainly using C++.

Windows 10 / Linux Mint, Visual Studio 2017. GPU: NVidia GeForce GTX970, CPU: Intel i7 7700K @ 4.20 GHz

Previously known as Evayr.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...