0
\$\begingroup\$

I'm learning Unreal engine, and I'm rather disappointed because it uses pitch roll and yaw instead of the standard x, y, and z that I'm used to. Is there any way to convert this easily, or is there a preference, or do I have to get used to using y,z,x, instead of x,y,z.

\$\endgroup\$
1
\$\begingroup\$

Depending on what you're trying to do, both rotational and vector coordinates are normally available. The following C++/Blueprint methods are available to move between the two different types of coordinate systems. Hope it helps!

FRotator

Represents rotational coordinates (yaw, pitch, roll).

C++: FRotator::Vector()

Blueprints: Break Rot Into Axes

FVector

Represents vector coordinates (x, y, z).

C++: FVector::Rotation()

Blueprints: Rotator from Axis and Angle

Other Conversions

Here's a list of other conversions. This may not be an exhaustive list as their code changes from version to version often. So, navigating the engine's source code on your computer will be the the final source of truth.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .