Download

Rotator property question

Hi all,

I couldn’t find it by using the documentation search, so I’ve come here instead, and maybe someone can point me in the right direction.

I’m wondering about the properties of a Rotator. Specifically, what is the XVector? How is this different then the Forward vector? I was playing around with the Physics Handle stuff in the Content Samples last night and I noticed that the ray casting uses the Camera Rotator XVector (normalized) to create the ray direction. I swapped it out for the Forward vector and everything still seemed to function.

Just looking for some insight and where in the documentation I would get this info.

Thanks!

-Phil

Those functions are listed here:

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Kismet/UKismetMathLibrary/index.html

Although their names may differ from what you see in Blueprints at times. For example:

Get Rotation XVector -> Conv_RotatorToVector

As for your question, the X vector and the Forward vector should be the same as far as I know.

Thanks for the response! That’s a very useful bit of documentation as well, I’m definitely bookmarking that :slight_smile:

-Phil