Unity 4.0 - Mecanim Animation Tutorial
Uploaded: November 23, 2012
Views: 121956
Learn how to create animated characters with the new Mecanim animation system in Unity 4.0.
Download the project folder to follow this tutorial at -
http://files.unity3d.com/will/MecanimTute.zip
Tagged with
Unity 4.0 - Mecanim Animation Tutorial
0
Views: 3219
Views: 798
Views: 4530
Views: 970
Views: 1279
Views: 372272
Views: 371558
Views: 121946
Views: 120877
Comments
why the SetLookAtPosition() funtion not work, the robot not look at enemy when I press the alt key??
So there are few bugs in that tutorial:
* Mouse Button is not hooked to Fire1, GUJIANWEI> go to PlayerSettings->Input find Fire1 axis, in Positive Button write 'mouse 0', instead of joystick button 16
* In LaserEyes.cs, lines:
Destroy(laserL);
Destroy(laserR);
are incorrect, because they're destroying LineRenderer, but should be destroying gameObjects which hold line renderer, so it should be:
Destroy(laserL.gameObject);
Destroy(laserR.gameObject);
also condition 'else if(botCtrl.lookWeight < 0.9f)' is incorrect, because if you're not shooting it's always be true, thus you'll be destroying objects every frame, I think it should be
else if(botCtrl.lookWeight < 0.9f && shot)
Cheers
My character wont Jump when i press space everything was properly set up... and i want to know how i can use my mecanim character with the joysticks on my android phone???
Melvin, check the names of your states, for instance that Locomotion is the same as in the tutorial video. If not, the references that are set up at the start of the script, will not be correct.
I had the same bug, because mine started with a lowercase L
Do you need to use Unity Pro?
I find it easier just to ignore using the project input settings all together and either using Input.GetKey(string lowercase_character) or using Input.GetKey(KeyCode.Space)
The input checking in BotControlScript of the tutorial is performed in the FixedUpdate() function which is not a good thing. You should always check input in the Update() loop as FixedUpdate will miss the event quite often... That's probably why you are experiencing the problem Melvin.
If you rename FixedUpdate() to Update() the robot will jump every time.
When trying to change the height of the capsule collider when Jumping, there is no "Curves" point to be seen. is this a Pro feature?
The video freezes constantly on me
well ive fixed the problem by renaming the states thx for ur answers i fixed it that way on my own tho XD but i should have read ur answers ! great !
but still can someone tell me how i use mecanim on mobile development? how do i combine it with the CameraRelativeControl prefab from the standart mobile assets??
Would be nice to have a download link for the video as well. My connection isn't great and it's taking forever to see this video! and every time I back up to review something it has to reload that part again.
is there script document correspond to this movie? I am not good to English,.. so if exist, it will be very helpful to me...
When trying to change the height of the capsule collider when Jumping, there is no "Curves" point to be seen. is this a Pro feature?
Curves is a pro feature. Anyone else having trouble with the camera staying behind the robot?
I tagged CamPos as MainCamera to get the camera to follow the robot.
The video can be downloaded from this link:
http://video.unity3d.com/4959050/7362044/2b72f7bc67cdb43986fecb609848e012/video_webm_720p/unity-40-mecanim-animation-tutorial-video.webm
If your browser plays it directly instead of downloading, you can use any download manager.
Inverse Kinematics (SetLookAtPosition) is also a Pro feature: http://docs.unity3d.com/Documentation/Manual/InverseKinematics.html
The video has some problems, after minute 24 it closes. Online and downloaded video. Is this video broken?
Video streaming is very slow. Should have used You tube instead.
Thanks for great tutorial!
I finally figured out how to use mecanim with mobile devices with the help of the Unity3D Asset Store, and the
Mecanim Touch Controller .
It replaces the usual AWSD keyboard and arrow key navigation for you with Touch input on mobile devices . It even works on Mac, PC, and Web Player, by using the mouse instead of touch input when no touch input is available, so you can save time and build your project and test it without having to build to the device every time you update or make a changeā¦and you can deploy the same code to mobile devices, Mac, PC, and Unity Web Players.
Take a look at the Unity Web Player Demo
here
to see how cool this is. It uses this mecanim tutorial as the basis for the demo scene so I was able to pick up on everything right away.
Cool map, but is this virus free?
i dont have curves
Thanks for the tutorial. Everything seems to work as it should, but I have only one problem is that when I press (assigned in the script instead Alt to mouse1) my character look the enemy and the third person camera does not line up to see the enemy properly resulting an outside view of the range of the enemy
i can't find the folder
nvr mind
Hi, the arena (ground and big boxes) dont show when i load the file, and when I play the file, some objects drop right away as if there is no ground, can you please help me. im new in unity
u don't need unity pro that's just how it looks on mac
how can i download this video.. i tried once but after downloaded it shows unsupported format error..
put download link somewhere for god sake.
When i want press Space he don't jump
So where is the running and turning control imput? i can''t see them. for example if i want to make a rocketpack on him, an stop the running anim when he is flying and going forwards.... how do i disable running due to a condition?