2017년 1월 4일 수요일

Unity - 2 - giving physical effect to the object by using script (moving objects)

1. At first, you should give physical property to the object like rigidbody which means solidate something
2. And add a script to the object by using 'Add Component' button in the lower right
3. Then you can see a generated script in the object
4. To open it , double click the script
 5. Actually, if you don't have 'Visual Studio 2015', unity load 'monodevelop' which is basic script editor of unity. but in my case , VS is more comfortable because I used it , so I'll use VS2015
6. In 'Monodevelop', you can get Unity API library by just pressing ' Ctrl and ' '
but in VS you have to find it in 'help' - > 'Reference Unity API'
7. Then by using API , you can write code for move object like that

※ The code is a little complicated, so next chapter , I'll explain about some API for beginners

댓글 없음:

댓글 쓰기