MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _setFieldRotation

Method _setFieldRotation

Engine/source/scene/sceneObject.cpp:712–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710//-----------------------------------------------------------------------------
711
712bool SceneObject::_setFieldRotation( void *object, const char *index, const char *data )
713{
714 SceneObject* so = static_cast<SceneObject*>( object );
715 if ( so )
716 {
717 MatrixF txfm( so->getTransform() );
718 Con::setData( TypeMatrixRotation, &txfm, 0, 1, &data );
719 so->setTransform( txfm );
720 }
721 return false;
722}
723
724//-----------------------------------------------------------------------------
725

Callers

nothing calls this directly

Calls 3

setDataFunction · 0.85
getTransformMethod · 0.45
setTransformMethod · 0.45

Tested by

no test coverage detected