Week 3
3D Models in Unity
This week I accomplished the control mapping of my character made in my last devlog. I did this simply by using the MyThirdPersonController script made in this lesson and also an if statement of whether or not the var v was empty or not.
if(v == 0) { anim.SetTrigger("Idle"); } else { anim.SetTrigger("Walk"); }
i did have some issues with the mesh of my character being broken by the unity import, regardless of settings I tinkered with.
Though I just chalked this up to my poorly optimised model.
I also had to change the basic movement code so I didn't have to go back into blender and change the axis, I did this by change the line
cc.SimpleMove(transform.forward * v * speed *-1);
to
cc.SimpleMove(transform.right * v * speed *-1);
Regardless of these hiccups I have a functioning walking character with an Idle state. I've found the Idle animation will return to the default state after it's finished but I've found the solution to this would be too much hassle for a basic tutorial project.
(I apologise for the quality ;) )
UTAS KIT207 Portfolio
More posts
- Tutorial 5Aug 23, 2022
- Self Study 4 - 2Aug 09, 2022
- Self Study 4 - 1Aug 09, 2022
- Self Study 3Aug 09, 2022
- Self Study 2Aug 09, 2022
- Week 2Jul 20, 2022
- Week 1Jul 19, 2022
Leave a comment
Log in with itch.io to leave a comment.