Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

2d rotation unity

// Rotation scripting with Euler angles correctly.
// Store the Euler angle in a class variable, and only use it to
// apply it as a Euler angle, but never rely on reading the Euler back.
        
float x;
void Update () 
    {
        x += Time.deltaTime * 10;
        transform.rotation = Quaternion.Euler(x,0,0);
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# named parameters 
Csharp :: linq where 
Csharp :: how to pass string value to enum in c# 
Csharp :: flip a character in unity 
Csharp :: joystock movement 
Csharp :: unity button onclick 
Csharp :: linear search c# 
Csharp :: add variable to the beginning of a list c# 
Csharp :: c# run cmd hidden 
Csharp :: unity string lowercase 
Csharp :: c# int to string 
Csharp :: generate entity model dot net core 
Csharp :: unity pause game c# 
Csharp :: c# oops concept 
Csharp :: c# swtich 
Csharp :: what is botnet attack 
Csharp :: length of array c# unity 
Csharp :: create list in c# 
Csharp :: c# empty list 
Csharp :: unity get default font 
Csharp :: qtablewidget add image 
Csharp :: how to make an ui to follow gameobject 
Csharp :: c# sort for loop 
Csharp :: mvc write to console 
Csharp :: checking if a list contains a value unity 
Csharp :: limiting the amount of decimal places c# 
Csharp :: Unity gameobject visible to specific camera 
Csharp :: c# delete files in directory and subdirectories 
Csharp :: input unity 
Csharp :: random mac address c# 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =