Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

How to add rigidbody as a variable

public Rigidbody rigid;

void Start() {
  rigid = GetComponent<Rigidbody> ();
}
Source by gamedev.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #How #add #rigidbody #variable
ADD COMMENT
Topic
Name
1+9 =