Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

how to lock rotation of a object in unity code example

Example: unity how to lock rotation

public float lockPos;

	void Update()
	{
		// Locks the rotation.
		transform.rotation = Quaternion.Euler(transform.rotation.eulerAngles.x, lockPos, lockPos);
	}

Tags:

Csharp Example

Related

array group and to object code example how to print the pointer value in c code example bootstrap add margins left and right code example convert yyyy-mm-dd to dd/mm/yyyy in javascript code example convert javascript object to json string code example flutter version how to change code example how to install urllib in python 3.7 code example mysql delete all rows from tables code example css to give margin to all the child divs inside a div code example conda make copy of an environment code example how to change the colour of part of a page html code example animate on scroll with animate.css code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy