SpiecsEngine
 
Loading...
Searching...
No Matches

◆ AddPosition()

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

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

Parameters
[in]positionThe entity's world position.

Definition at line 96 of file TransformComponent.h.

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