MaxAigner Posted September 1, 2015 Posted September 1, 2015 Hello forum, I am trying to make my camera move along some 3D points that also store rotation How can I make the movement smooth like in a spline? I don't know much about splines but found this for leadwerks 2: How can I do sth. like that on Leadwerks 3? thanks for your help! yours Max Aigner Quote
Rick Posted September 1, 2015 Posted September 1, 2015 You could look at using this library to give you many cool tweening options in lua! https://github.com/kikito/tween.lua I love this library! 1 Quote
beo6 Posted September 1, 2015 Posted September 1, 2015 Don't want to make self advertising as i know it is not perfect, but you can try this script from the workshop: http://steamcommunity.com/sharedfiles/filedetails/?id=401012514 1 Quote
MaxAigner Posted October 3, 2015 Author Posted October 3, 2015 OK.. I played a bit around and read through your code beo6 - Isn't the code just for like 4 points? I need a code for N-points... nevertheless it is a good starting and I think I get the math of spline slowy, too When I have it I'll write the code.. for now this is also helpful: Quote
beo6 Posted October 5, 2015 Posted October 5, 2015 The script does work with N points. It might give issues with less points though. Quote
MaxAigner Posted November 1, 2015 Author Posted November 1, 2015 Hi beo6, Oh ok, yes actually it works now - it took me some time to understand how to implement it into my code - now it works very well - thank you! Quote
Recommended Posts
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.