SpiecsEngine
 
Loading...
Searching...
No Matches

◆ SetPosition()

void Spices::TransformComponent::SetPosition ( const glm::vec3 & position)
inline

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

Parameters
[in]positionThe entity's world position.

Definition at line 75 of file TransformComponent.h.

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

References CalMatrix().