Nameless Engine
Loading...
Searching...
No Matches
ne::SpatialNode::WorldMatrixInformation Struct Reference

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
 

Detailed Description

Small helper struct to keep all world space related information in one place.

Member Data Documentation

◆ bInOnWorldLocationRotationScaleChanged

bool ne::SpatialNode::WorldMatrixInformation::bInOnWorldLocationRotationScaleChanged = false

Whether we are in the notification callback or not.

◆ worldForward

glm::vec3 ne::SpatialNode::WorldMatrixInformation::worldForward = Globals::WorldDirection::forward

Forward direction of this node in world space.

◆ worldLocation

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.

◆ 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.

◆ worldRight

glm::vec3 ne::SpatialNode::WorldMatrixInformation::worldRight = Globals::WorldDirection::right

Right direction of this node in world space.

◆ worldRotation

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.

◆ worldRotationQuaternion

glm::quat ne::SpatialNode::WorldMatrixInformation::worldRotationQuaternion = glm::identity<glm::quat>()

Rotation from worldMatrix in the quaternion form.

◆ worldScale

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.

◆ worldUp

glm::vec3 ne::SpatialNode::WorldMatrixInformation::worldUp = Globals::WorldDirection::up

Up direction of this node in world space.


The documentation for this struct was generated from the following file: