Separate world anchors from grid pan
This commit is contained in:
parent
deff4fceef
commit
00f9a7563f
2 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ float3 planetCenter(int index)
|
|||
float f = (float)index;
|
||||
float angle = f * 0.8975979 + timeSeconds * (0.08 + 0.011 * f);
|
||||
float radius = 4.1 + f * 0.77;
|
||||
float2 xy = gridCenter + float2(cos(angle), sin(angle)) * radius;
|
||||
float2 xy = float2(cos(angle), sin(angle)) * radius;
|
||||
return float3(xy, 1.15 + planetRadius(index) * 0.72);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ public sealed class OrbitCameraRig
|
|||
|
||||
if (input.RightMouseDown && input.MouseDelta != Vector2.Zero)
|
||||
{
|
||||
Pan(GridPanVector(new Vector2(input.MouseDelta.X, -input.MouseDelta.Y) * Distance * 0.0018f));
|
||||
Pan(GridPanVector(new Vector2(-input.MouseDelta.X, input.MouseDelta.Y) * Distance * 0.0018f));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue