Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDennis Zern
813 PointsWhat exactly does NewRotation stand for? Like, which part does it change?
What exactly does NewRotation stand for? Like, which part does it change?
How does it affect the Quaternion?
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! I believe you're referring to the newRotation
variable that Nick sets up. This is of type Quaternion and stores a the results of the Quaternion.Lerp function. As I understand it, this interpolates between two Quaternions and normalizes the result over a given time.
You can view more information on Quaternion.Lerp in this Unity documentation
Hope this helps!