Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Rotating an object in Unity

using UnityEngine;

public class Rotation_demo : MonoBehaviour
{
    Vector3 rot=new Vector3(10,10,10);
  
    void Start()
    {
       transform.Rotate(rot);
        
    }
}
Comment

rotate gameobject unity

Transform.Rotate(Vector3 eulers)
// you can add relativeTo=Space.Self for it to rotate arround itself or do
// relativeTo=Space.World to rotate relative to the scene
// https://docs.unity3d.com/ScriptReference/Transform.Rotate.html
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# string slice 
Csharp :: Show private fields in Unity Inspector 
Csharp :: C# clear form 
Csharp :: check if palindrome recursion in c# 
Csharp :: how to get unique list in c# 
Csharp :: how to concatenate two arrays in c# 
Csharp :: index of c# 
Csharp :: array reduce c# 
Csharp :: unity rigid body variable 
Csharp :: mvc refresh page from controller 
Csharp :: c# xml get root attributes 
Csharp :: All Possible SubString 
Csharp :: combobox selected name c# 
Csharp :: difference between awake and start unity 
Csharp :: scale between tow ranges c# 
Csharp :: c# yield 
Csharp :: c# count directories in directory and subdirectories 
Csharp :: c# combobox with text and value 
Csharp :: C# Bitwise Right Shift 
Csharp :: set text in unity invisible 
Csharp :: razor concatonate inline 
Csharp :: c# max function 
Csharp :: listbox items to string c# 
Csharp :: how to fix on Input.GetMouseButtonDown(0) conting as ui 
Csharp :: iframe set html content c# 
Csharp :: convert path to uri c# 
Csharp :: rotation 
Csharp :: c# .net automapper profile 
Csharp :: c# sharepoint get users from column 
Csharp :: indexof c# 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =