Nameless Engine
|
Public Attributes | |
glm::vec3 | worldLocation = glm::vec3(0.0F, 0.0F, 0.0F) |
glm::vec3 | worldRotation = glm::vec3(0.0F, 0.0F, 0.0F) |
glm::vec3 | worldScale = glm::vec3(1.0F, 1.0F, 1.0F) |
glm::vec3 | worldForward = Globals::WorldDirection::forward |
glm::vec3 | worldRight = Globals::WorldDirection::right |
glm::vec3 | worldUp = Globals::WorldDirection::up |
glm::quat | worldRotationQuaternion = glm::identity<glm::quat>() |
glm::mat4x4 | worldMatrix = glm::identity<glm::mat4x4>() |
bool | bInOnWorldLocationRotationScaleChanged = false |
Small helper struct to keep all world space related information in one place.
bool ne::SpatialNode::WorldMatrixInformation::bInOnWorldLocationRotationScaleChanged = false |
Whether we are in the notification callback or not.
glm::vec3 ne::SpatialNode::WorldMatrixInformation::worldForward = Globals::WorldDirection::forward |
Forward direction of this node in world space.
glm::vec3 ne::SpatialNode::WorldMatrixInformation::worldLocation = glm::vec3(0.0F, 0.0F, 0.0F) |
World location of this node. This value contains the location component of worldMatrix.
glm::mat4x4 ne::SpatialNode::WorldMatrixInformation::worldMatrix = glm::identity<glm::mat4x4>() |
Matrix that combines worldLocation, worldRotation and worldScale. Allows transforming data from node's local space directly into the world space.
glm::vec3 ne::SpatialNode::WorldMatrixInformation::worldRight = Globals::WorldDirection::right |
Right direction of this node in world space.
glm::vec3 ne::SpatialNode::WorldMatrixInformation::worldRotation = glm::vec3(0.0F, 0.0F, 0.0F) |
World rotation (roll, pitch, yaw in degrees) of this node. This value contains the rotation component of worldMatrix.
glm::quat ne::SpatialNode::WorldMatrixInformation::worldRotationQuaternion = glm::identity<glm::quat>() |
Rotation from worldMatrix in the quaternion form.
glm::vec3 ne::SpatialNode::WorldMatrixInformation::worldScale = glm::vec3(1.0F, 1.0F, 1.0F) |
World space of this node. This value contains the scale component of worldMatrix.
glm::vec3 ne::SpatialNode::WorldMatrixInformation::worldUp = Globals::WorldDirection::up |
Up direction of this node in world space.