F.hao 16 Posted October 9, 2021 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: 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
Mello1223 591 Posted October 9, 2021 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
Mello1223 591 Posted October 9, 2021 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
F.hao 16 Posted October 10, 2021 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
Mello1223 591 Posted October 10, 2021 the only thing you need fpr "move with the mouse" : Share this post Link to post Share on other sites
F.hao 16 Posted October 10, 2021 (edited) You are Amazing! @Mello1223 ! This simple tile, It's so cool!??It's work very good! Thank you! Edited October 10, 2021 by F.hao 1 Share this post Link to post Share on other sites