SpiecsEngine
 
Loading...
Searching...
No Matches

◆ SetRotation()

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

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

Parameters
[in]rotationThe entity's world rotation.

Definition at line 82 of file TransformComponent.h.

82{ 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().