MCPcopy Create free account
hub / github.com/Illation/ETEngine / MakeData

Method MakeData

Engine/source/EtFramework/Components/TransformComponent.cpp:133–142  ·  view source on GitHub ↗

---------------------------------- TransformComponentDesc::MakeData Create a transform component from a descriptor

Source from the content-addressed store, hash-verified

131// Create a transform component from a descriptor
132//
133TransformComponent* TransformComponentDesc::MakeData()
134{
135 TransformComponent* const ret = new TransformComponent();
136
137 ret->SetPosition(position);
138 ret->SetRotation(rotation);
139 ret->SetScale(scale);
140
141 return ret;
142}
143
144
145} // namespace fw

Callers

nothing calls this directly

Calls 3

SetPositionMethod · 0.80
SetRotationMethod · 0.80
SetScaleMethod · 0.80

Tested by

no test coverage detected