| 103 |
} |
} |
| 104 |
private void simConnectedCallback(Simulator sender) |
private void simConnectedCallback(Simulator sender) |
| 105 |
{ |
{ |
| 106 |
m_user.Throttle.Total = 500000; |
m_user.Throttle.Total = 600000; |
| 107 |
m_user.Throttle.Land = 80000; |
m_user.Throttle.Land = 80000; |
| 108 |
m_user.Throttle.Task = 200000; |
m_user.Throttle.Task = 200000; |
| 109 |
m_user.Throttle.Texture = 150000; |
m_user.Throttle.Texture = 150000; |
| 113 |
m_user.Throttle.Cloud = 10000; |
m_user.Throttle.Cloud = 10000; |
| 114 |
m_user.Self.Movement.Camera.Far = 64f; |
m_user.Self.Movement.Camera.Far = 64f; |
| 115 |
m_user.Self.Movement.Camera.Position = m_user.Self.RelativePosition; |
m_user.Self.Movement.Camera.Position = m_user.Self.RelativePosition; |
| 116 |
|
SetHeightWidth(768, 1024); |
| 117 |
if (OnSimConnected != null) |
if (OnSimConnected != null) |
| 118 |
{ |
{ |
| 119 |
OnSimConnected(sender); |
OnSimConnected(sender); |
| 294 |
m_user.Assets.RequestImage(assetID, ImageType.Normal); |
m_user.Assets.RequestImage(assetID, ImageType.Normal); |
| 295 |
} |
} |
| 296 |
|
|
| 297 |
public void SetCameraPosition(Vector3 pPosition,Vector3 pTarget) |
public void SetCameraPosition(Vector3[] camdata) |
| 298 |
{ |
{ |
| 299 |
|
|
| 300 |
if (Single.IsNaN(pPosition.X) || Single.IsNaN(pPosition.Y) || Single.IsNaN(pPosition.Z)) |
for (int i=0;i<camdata.Length; i++) |
| 301 |
|
if (Single.IsNaN(camdata[i].X) || Single.IsNaN(camdata[i].Y) || Single.IsNaN(camdata[i].Z)) |
| 302 |
return; |
return; |
| 303 |
|
|
| 304 |
m_user.Self.Movement.Camera.Position = pPosition; |
//m_user.Self.Movement.Camera.Position = pPosition; |
| 305 |
m_user.Self.Movement.Camera.LookAt(pPosition, pTarget); |
//m_user.Self.Movement.Camera.LookAt(pPosition, pTarget); |
| 306 |
|
m_user.Self.Movement.Camera.AtAxis = camdata[1]; |
| 307 |
|
m_user.Self.Movement.Camera.LeftAxis = camdata[0]; |
| 308 |
|
m_user.Self.Movement.Camera.LeftAxis = camdata[2]; |
| 309 |
|
|
| 310 |
|
} |
| 311 |
|
|
| 312 |
|
public void SetHeightWidth(uint height, uint width) |
| 313 |
|
{ |
| 314 |
|
m_user.Self.SetHeightWidth((ushort)height, (ushort)width); |
| 315 |
} |
} |
| 316 |
|
|
| 317 |
public UUID GetSelfUUID |
public UUID GetSelfUUID |