Answers for "stagnant object in unity"

C#
0

stagnant object in unity

Rigidbody2D rb;

void Start()
{
    rb = GetComponent<Rgidbody2D>();
	IsStagnant(); 
}

void IsStagnant()
{
	if (Rigidbody2D.Isleeping())
    {
    	Debug.Log("Object is not moving")
    }
}
Posted by: Guest on July-18-2020

C# Answers by Framework

Browse Popular Code Answers by Language