MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / SetTransform

Method SetTransform

src/engine/SceneGraph.cpp:282–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void SceneGraphNode::SetTransform(const dm::double3* translation, const dm::dquat* rotation, const dm::double3* scaling)
283{
284 if (scaling) m_Scaling = *scaling;
285 if (rotation) m_Rotation = *rotation;
286 if (translation) m_Translation = *translation;
287
288 m_Dirty |= DirtyFlags::LocalTransform;
289 m_HasLocalTransform = true;
290 PropagateDirtyFlags(DirtyFlags::SubgraphTransforms);
291}
292
293void SceneGraphNode::SetScaling(const dm::double3& scaling)
294{

Callers 1

AttachMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected