Git Product home page Git Product logo

rotating-the-gaming-object's Introduction

Rotating-the-Gaming-Object

Aim:

To develop a 3D application for rotating the gaming objects in unity.

Algorithm:

Step1:

Start

Start2:

Click File -> Scene -> Select the scene -> Save as-> New folder(Scenes)-> File name (Expno1)

Start3:

Click Hierarchy -> 3DObject -> Cylinder Hierarchy -> 3DObject -> Capsule Hierarchy -> 3DObject -> Text Hierarchy -> Effects -> Particle system

Start4:

Create a folder in project and name as Materials Material folder -> Create -> Material (Name: Cylinder) Inspector ->Surface Inputs ->BaseMAp (Choose the color) Drag the Cylinder to the plane and release the mouse

Create a folder in project and name as Materials Material folder -> Create -> Material (Name: Capsule) Inspector ->Surface Inputs ->BaseMAp (Choose the color) Drag the Capsule to the plane and release the mouse

Start5:

Click Hierarchy -> DirectionalLight Inspector -> Change the color to white (255,255,255)

Start6:

Create a folder name Coding and create a C# file to add the coding in it.

Start7:

To add our C# Script file to our selected object, click on the C# Script file and drag it to our selected objects in the Hierarchy window nad run the application.

Start8:

Stop

Program:

Developed by: JEGADEESH SATHAIYA
Registered Number : 212222230055
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class exp1 : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        transform.RotateAround(Vector3.right, Vector3.up, 60 * Time.deltaTime);
        
    }
}

Output:

image

Result:

Thus a 3D application for rotating the gaming objects in unity is developed successfully.

rotating-the-gaming-object's People

Contributors

archanasharikalharinarayanan avatar jegadeesh07 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.