Horje
hwo to prevent rotation after hitting an object in unity Code Example
hwo to prevent rotation after hitting an object in unity
private void OnCollisionEnter(Collision collision)
{
	GetComponent<RigidBody>().freezeRotation = true;
}




Csharp

Related
c# get total milliseconds from datetime Code Example c# get total milliseconds from datetime Code Example
C# actions Code Example C# actions Code Example
get unique array based on value in c# Code Example get unique array based on value in c# Code Example
loading screen unity Code Example loading screen unity Code Example
simple code to call rest api c# Code Example simple code to call rest api c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10