public UpdateSingleRotation ( Quaternion rot, System.Vector3 pos, uint localID ) : void | ||
rot | Quaternion | |
pos | System.Vector3 | |
localID | uint | |
Результат | void |
public void UpdateSingleRotation(Quaternion rot, Vector3 pos, uint localID)
{
SceneObjectPart part = (SceneObjectPart) GetChildPart(localID);
if (part != null)
{
if (part.UUID == m_rootPart.UUID)
{
UpdateRootRotation(rot);
AbsolutePosition = pos;
}
else
{
part.StoreUndoState();
part.IgnoreUndoUpdate = true;
part.UpdateRotation(rot);
part.FixOffsetPosition(pos, true);
part.IgnoreUndoUpdate = false;
}
}
}
SceneObjectGroup::UpdateSingleRotation ( Quaternion rot, uint localID ) : void |