本文整理匯總了C#中OpenMetaverse.Vector3.ToString方法的典型用法代碼示例。如果您正苦於以下問題:C# Vector3.ToString方法的具體用法?C# Vector3.ToString怎麽用?C# Vector3.ToString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OpenMetaverse.Vector3
的用法示例。
在下文中一共展示了Vector3.ToString方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: UpdateCamera
// 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;
}