Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
set rotation to velocity unity
arauzo
Programming language:
C#
2021-03-27 09:12:50
6
Q:
set rotation to velocity unity
digitig
Code:
C#
2021-03-14 12:18:06
transform.rotation = Quaternion.LookRotation(rigidbody.velocity);
1
Tags
unity
unit
set
Related
how to chagne rotation in unity
interpolate rotation unity3d
rigidbody velocity c# unity
unity how to change rotation
unity get velocity at point
unity rotation to quaternion
rotate object towards target rotation slowly unity
New to Communities?
Join the community