Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

spin with rigidbody 2d unity

    public Rigidbody2D rigidBody2D;

    void Start()
    {
        rigidBody2D = GetComponent<Rigidbody2D>();
        rigidBody2D.rotation = 45f;
    }

    void FixedUpdate()
    {
        rigidBody2D.rotation += 1.0f;
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to check url has parameter in c# 
Csharp :: c# external ip 
Csharp :: get script directory c# 
Csharp :: get all properties of an object including children c# 
Csharp :: telerik winforms get value of selected rows from grid 
Csharp :: devexpress spreadsheet document source wpf 
Csharp :: unity line renderer opacity 
Csharp :: how to know pm or am C# 
Csharp :: unity deactivate scripts in list 
Csharp :: change skybox color unity 
Csharp :: dictionaries in unity 
Csharp :: convert list to datatable c# 
Csharp :: unity easing out 
Csharp :: c# signalr console app server example 
Csharp :: visual studio console.writeline not showing in output window 
Csharp :: example of List c# 
Csharp :: how to count letters in c# 
Csharp :: asp.net call controller from another controller 
Csharp :: c# 10 null checl 
Csharp :: .net core login redirect loop 
Csharp :: selenum wait for element c# 
Csharp :: count number of specific characters in string c# 
Csharp :: c# method declaration 
Csharp :: c# yield return ienumerable 
Csharp :: ontriggerenter unity not working 
Csharp :: remove numericUpDown arrows 
Csharp :: c# out argument 
Csharp :: error cs1585 unity 
Csharp :: active form 
Csharp :: discord bot c# how to refresh message 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =