SpiecsEngine
 
Loading...
Searching...
No Matches

◆ SetScale()

void Spices::TransformComponent::SetScale ( const glm::vec3 & scale)
inline

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

Parameters
[in]scaleThe entity's world scale.

Definition at line 89 of file TransformComponent.h.

89{ m_Transform.scale = scale; CalMatrix(); }
void CalMatrix()
Calculate Model Matrix.
Transform m_Transform
The transform this component handled.
glm::vec3 scale
Definition Transform.h:19

References CalMatrix().