SpiecsEngine
 
Loading...
Searching...
No Matches

◆ AddRotation()

void Spices::TransformComponent::AddRotation ( const glm::vec3 & rotation)
inline

Add the rotation to this component handled. Call CalMatrix() during this API.

Parameters
[in]rotationThe entity's world rotation.

Definition at line 103 of file TransformComponent.h.

103{ m_Transform.rotation += rotation; CalMatrix(); }
void CalMatrix()
Calculate Model Matrix.
Transform m_Transform
The transform this component handled.
glm::vec3 rotation
Definition Transform.h:18

References CalMatrix().