Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to stop player rotating when hit by object

//Set freeze rotation on the rigidbody to true.  This will stop the object from
//physics calculations randomly rotating it when hitting other colliders, but 
//will still let you rotate your player by using the transform
_RigidBody2D.freezeRotation = true;
Comment

PREVIOUS NEXT
Code Example
Csharp :: index in foreach c# 
Csharp :: how to write switch statement unity 
Csharp :: listview disable resize columns 
Csharp :: unity length of string 
Csharp :: unity how to ommit letters from a string 
Csharp :: remove focus from button unity 
Csharp :: dapper delete where in list 
Csharp :: c# unity camera follow 
Csharp :: shorthand in c# operator 
Csharp :: trnasform ubnity 
Csharp :: c# file exist 
Csharp :: struct constructor c# 
Csharp :: c# byte array to string 
Csharp :: valid url in .net 
Csharp :: request for adminstrator permission 
Csharp :: exit a method c# 
Csharp :: object to mouse unity 
Csharp :: lump in neck under jaw 
Csharp :: convert string to array c# 
Csharp :: c# keep console open 
Csharp :: c# solution path 
Csharp :: how to stop rigidbody2d from falling in unity 
Csharp :: tests not showing in test explorer 
Csharp :: bootstrap modal 
Csharp :: start command line from c# 
Csharp :: unity smooth rotation 2d 
Csharp :: how to map datatable to list in c# 
Csharp :: compile in one single exe c# 
Csharp :: custom array initializer in c# 
Csharp :: c# compile code at runtime 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =