Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to change the axis of a Vector3 variable

Vector3 playerPosition = new Vector3(0, 0, 0); 

void Update()
{
	Input.Getkey("w")
    {
		playerPosition = transform.position;
		playerPosition.x -= 1f;
		transform.position = playerPosition;
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# create object with properties 
Csharp :: linux command line switch statement 
Csharp :: mute sound unity 
Csharp :: c# find process by name 
Csharp :: c# add picturebox to form 
Csharp :: header export excel data only php 
Csharp :: how to read values from appsettings.json in c# 
Csharp :: how get query from url in laravel 
Csharp :: c# type from string 
Csharp :: c# md5 
Csharp :: unity mouse click position 
Csharp :: how to allow user import image c# 
Csharp :: c# read file line by line 
Csharp :: newtonsoft create dynamic object 
Csharp :: good food 
Csharp :: unity quaternion 
Csharp :: c# get type of object 
Csharp :: System command c# 
Csharp :: byte to binary c# 
Csharp :: c# lambda join two tables 
Csharp :: how to make dictionary c# 
Csharp :: unity c# random number 
Csharp :: array to list c 
Csharp :: color unity 
Csharp :: NET Framework 4.7.1 or a later update is already installed on this computer. 
Csharp :: split string on last element 
Csharp :: how to rotate object in unity only on one axis 
Csharp :: get sha1 of file c# 
Csharp :: single line and multiline comments in c# 
Csharp :: unity no serializefield 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =