Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity how to add force

public Rigidbody rb;

if(Input.GetKey(KeyCode.W))
{
	rb.AddForce(100, 0, 0);
}  
 
PREVIOUS NEXT
Tagged: #unity #add #force
ADD COMMENT
Topic
Name
1+6 =