#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

# scene.camera.forward?

Posts: 343

I’m in the Learn Craft example, Cameras tab. It positions the camera by setting its eulerAngles, and then multiplying scene.camera.forward by 5 (negated actually), which I gather moves the camera outward along the vector of those angles. scene.camera.forward looks to me to be the eulerAngles converted to radians, normalized.

It’s not documented. Anyone have a few wise words to say about what this value actually represents, or wise words about good ways to position the camera? I expect to learn more as I go through other examples.

Thanks!

Yes, the `eulerAngles` function takes in 3 angle values (in degrees) and composes a quaternion using those. All entities have a transform and the properties `forward`, `right` and `up` return the principle axes in those directions (right being +x, up being +y and forward being +z). So when you rotate an entity you can move it in these directions relative to it's global transform.