Answers for "unity unfreeze position"

C#
3

rigidbody2d unfreeze position

public Rigidbody2D rb;

void Start()
{
	rb.constraints = RigidbodyConstraints2D.None;
}
Posted by: Guest on July-16-2020
0

unity unfreeze position in script

using UnityEngine;

public class FreezePosition : MonoBehaviour
{
    public GameObject TheThingToFreeze;
  	
    public void	Start()
    {
    	TheThingToFreeze.GetComponent<Rigidbody>().constraints = RigidbodyConstraints.None;  
    }
    
}
Posted by: Guest on February-26-2021

C# Answers by Framework

Browse Popular Code Answers by Language