Jump to content
Sign in to follow this  
F.hao

About Slerp rotation

Recommended Posts

Hi guys, i'm trying set Controller camera, trying aim somewhere by mouse(by the second Horizontal input, but it's not work well), i've been learned from Naru,but i think i don't know this code:

image.png.5569d613c24d75ce30f17c9d36553b2e.png

https://community.bistudio.com/wiki/Ylands:Tile_-_YVector3_-_Slerp_Rotation

Can someone tell me anything about this code? I really don't understand how this code work ways. But i can feel,this is some difficulty things?. Well, just trying to figure it.

Share this post


Link to post
Share on other sites

example :

 rotation A        0 degrees
 rotation B   100 degrees

 if T = 0 the tile returns 0 degrees  , if T = 1 tile returns 100 degrees .. if T = 0.1 tile returns 10 degrees if T = 0.5 tile returns 50 degrees etc... 

 

Share this post


Link to post
Share on other sites

if you need help with a specific script for rotating the camera using a mouse, contact me on discord. but if it's not urgent, wait until next Monday, then I'll be happy to help you. 

discord nick : mello#4849

Share this post


Link to post
Share on other sites

Oh, thank you Mello. So this tile is returns a Interpolation between two rotation. Yeah, still don't know the behind principle?.

For now. i can control camera rotate on X axis by mouse,with second Vertical input. But when i try the same way to control rotate on Y axis, with second horizontal, it's just can't work. the rotation angle on Y axis never change over 5 degree even hard move my mouse, and i don't why.

Whatever. does next Monday is tomorrow? Thank you again.

 

Share this post


Link to post
Share on other sites

You are Amazing! @Mello1223 ! This simple tile, It's so cool!??It's work very good! Thank you!

Edited by F.hao
  • Thanks 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×