MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / SetOrigin

Method SetOrigin

Source/Runtime/Private/Components/ComTransform.cpp:232–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void ComTransform::SetOrigin(const Vec3 &origin) {
233 const ComTransform *parent = GetParent();
234 SetLocalOrigin(parent ? parent->GetMatrix().Inverse() * origin : origin);
235}
236
237void ComTransform::SetScale(const Vec3 &scale) {
238 const ComTransform *parent = GetParent();

Callers 11

UpdateMethod · 0.45
MoveMethod · 0.45
TransformUpdatedMethod · 0.45
DrawGizmosMethod · 0.45
DrawGizmosMethod · 0.45
TransformUpdatedMethod · 0.45
RenderLightMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
RB_ShadowCubeMapPassFunction · 0.45

Calls 3

GetParentFunction · 0.50
InverseMethod · 0.45
GetMatrixMethod · 0.45

Tested by

no test coverage detected