MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / SetPosition

Method SetPosition

extensions/olcPGEX_Wireframe.h:236–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234 }
235
236 void Model::SetPosition(const olc::vf2d& position)
237 {
238 matLocalTranslation.translate(position);
239 matLocal = matLocalRotation * matLocalTranslation;
240 }
241
242 void Model::Attach(Model* child, const olc::vf2d& position, const float angle)
243 {

Callers 1

AttachMethod · 0.45

Calls 1

translateMethod · 0.45

Tested by

no test coverage detected