DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+1 =
Submit