"freeze axis in script" Code Answer's
You're definitely familiar with the best coding language C# that developers use to develop their projects and they get all their queries like "freeze axis in script" answered properly. Developers are finding an appropriate answer about freeze axis in script related to the C# coding language. By visiting this online portal developers get answers concerning C# codes question like freeze axis in script. Enter your desired code related query in the search bar and get every piece of information about C# code related question on freeze axis in script.
freeze axis in script
public Rigidbody2D rb;
void Start()
{
//Freeze Rotation on X Axis
rb.constraints = RigidbodyConstraints2D.FreezeRotationX;
//Freeze Rotation on Y Axis
rb.constraints = RigidbodyConstraints2D.FreezeRotationY;
//Freeze Rotation on Z Axis
rb.constraints = RigidbodyConstraints2D.FreezeRotationZ;
//Freeze Position on X Axis
rb.constraints = RigidbodyConstraints2D.FreezePositionX;
//Freeze Position on Y Axis
rb.constraints = RigidbodyConstraints2D.FreezePositionY;
//Freeze Position on Z Axis
rb.constraints = RigidbodyConstraints2D.FreezePositionZ;
//Freeze All Axis (Rotation & Position)
rb.constraints = RigidbodyConstraints2D.FreezeAll;
//UnFreeze All Axis (Rotation & Position)
rb.constraints = RigidbodyConstraints2D.None;
}
All those coders who are working on the C# based application and are stuck on freeze axis in script can get a collection of related answers to their query. Programmers need to enter their query on freeze axis in script related to C# code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about freeze axis in script for the programmers working on C# code while coding their module. Coders are also allowed to rectify already present answers of freeze axis in script while working on the C# language code. Developers can add up suggestions if they deem fit any other answer relating to "freeze axis in script". Visit this developer's friendly online web community, CodeProZone, and get your queries like freeze axis in script resolved professionally and stay updated to the latest C# updates.