Nothing Special   »   [go: up one dir, main page]

19bce0696 VL2021220502910 Ast01

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Parijat Niyogy Lab Assessment 1 19BCE0696

Aim:
1. Using the viewport, implementing the view port with different ability, save the file, Save the
project, file management, path management, assets management.
2. Import the character as such from net and movement of the character in Unity.

Procedure:
1. Using the viewport:
• Using the ‘Move’ mode.

Using viewport, with different ability:

• Pressing Q, W, E, R, T, Y can change the views in Unity


Parijat Niyogy Lab Assessment 1 19BCE0696

Saving the file:

• Press Ctrl + S or File > Save.

Saving the project:

• Project is saved in a folder.


Parijat Niyogy Lab Assessment 1 19BCE0696

File Management:
• Entering the ‘Assets’ folder in Windows File Explorer.

Creating materials:
Parijat Niyogy Lab Assessment 1 19BCE0696

Ctrl+D to copy objects:

Creating PreFabs:

• Drag and drop the grass element on the dirt object


• This makes grass a child element
• Now we drag the entire layer method under the prefabs folder
Parijat Niyogy Lab Assessment 1 19BCE0696

Adding weight:
Parijat Niyogy Lab Assessment 1 19BCE0696

To make the player jump:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Player : MonoBehaviour


{

bool hungry;

// Start is called before the first frame update


void Start()
{

// Update is called once per frame


void Update()
{
if (Input.GetKeyDown(KeyCode.Space) == true)
{
GetComponent<Rigidbody>().AddForce(Vector3.up * 5,
ForceMode.VelocityChange) ;
}
}
}

2. We download a character from Mixamo


Parijat Niyogy Lab Assessment 1 19BCE0696

• We import the character and the animation into the materials folder
• In unity we select the vampire character
• We select the rig tab
• Turn this into humanoid rig
• We then go to materials.
• Extract texture and materials

• Change the animation type to humanoid….and select avatar definition to copy from
other avatar

• Now we create an animated controller


• Then we drag and drop the same into the controller for the character
Parijat Niyogy Lab Assessment 1 19BCE0696

Results:
The character is finally moving
Parijat Niyogy Lab Assessment 1 19BCE0696

You might also like