Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Set orientation of moving object towards it movement direction without using rigidbody

transform.rotation = Quaternion.LookRotation(transform.position);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Set #orientation #moving #object #movement #direction #rigidbody
ADD COMMENT
Topic
Name
2+1 =