- Home /
Learning to move
Hi.
I'm new to 3D engines, so please accept my apologies if this is too basic.
My application deals cards from a deck so I need to move each card from the deck at the center of the table to the appropriate player "seat". I would like the card to spin as it travels and then land in the appropriate spot, but for now I'm just working on understanding movement.
Based on what I've been able to gather via these forums, I need a startLoc tranform, and endLoc transform, a deltaTime, and some version of a "Lerp" function. Of these, the only thing I currently understand is 'deltaTime'.
Where do I get values for the two transforms? How do I know which version of Lerp to use and why?
I know that a transform is a matrix, but that's about all I know. Is there a tutorial that walks one through these things and explains them to someone with no pre-existing knowledge of the subject?
Thanks, BT.
Answer by Shogun · May 17, 2011 at 05:57 PM
Welcome to Unity :)
It seems that you are extreamly new to Unity/Scripting so i would suggest watching these videos: http://www.unity3dstudent.com/category/modules/essential-skills/
They explain all the basics that you need to know about Unity in short videos. This is where i learned and i would recomment it to anyone starting out.
After you have learned the basics i would suggest going onto the Unity site and taking a look at the Documentation (http://unity3d.com/support/documentation/). Here you will find tutorials on all aspects of Unity aswell a full scripting reference area.
Happy Coding! :)