public override string ToString() { StringBuilder buff = new StringBuilder(); buff.Append("<p="); buff.Append(OffsetPos.ToString()); buff.Append(",r="); buff.Append(OffsetRot.ToString()); buff.Append(">"); return(buff.ToString()); }
public override string ToString() { StringBuilder buff = new StringBuilder(); buff.Append("<i="); buff.Append(Index.ToString()); buff.Append(",p="); buff.Append(OffsetFromRoot.ToString()); buff.Append(",m="); buff.Append(OffsetFromCenterOfMass.ToString()); buff.Append(",r="); buff.Append(OffsetRot.ToString()); buff.Append(">"); return(buff.ToString()); }
public OpenMetaverse.Vector3 ModTest5(UUID hostID, UUID scriptID, OpenMetaverse.Vector3 value) { m_log.WarnFormat("[ModInvoke] ModTest5 parameter: {0}", value.ToString()); return(value); }
// tell the renderer about the camera position public void UpdateCamera(CameraControl cam) { if (m_focusRegion != null) { OMV.Vector3 newPos = new OMV.Vector3(); newPos.X = (float)(cam.GlobalPosition.X - m_focusRegion.GlobalPosition.X); newPos.Y = (float)(cam.GlobalPosition.Y - m_focusRegion.GlobalPosition.Y); // another kludge camera offset. Pairs with position kludge in Viewer. newPos.Z = (float)(cam.GlobalPosition.Z - m_focusRegion.GlobalPosition.Z) + 10f; m_log.Log(LogLevel.DRENDERDETAIL, "UpdateCamera: g={0}, f={1}, n={2}", cam.GlobalPosition.ToString(), m_focusRegion.GlobalPosition.ToString(), newPos.ToString()); Camera.Position = newPos; OMV.Vector3 dir = new OMV.Vector3(1f, 0f, 0f); Camera.FocalPoint = (dir * cam.Heading) + Camera.Position; } return; }