简体   繁体   中英

How do you calculate an up vector from pitch, yaw and roll?

I'm trying to calculate an up vector from a direction vector I have (from which I can get the pitch and yaw) and roll I have. I need this so that I can make a quaternion.

Does anybody know how I can do this?

I was able to resolve this issue by using a utility that allowed me to convert pitch yaw and roll into an up vector! (Using the quaternions from BKCommonLib)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM