simulator orbital view
This commit is contained in:
parent
a906d2bfdc
commit
2eb15dd992
1 changed files with 5 additions and 2 deletions
|
@ -64,8 +64,11 @@ static class Mono
|
||||||
if (Input.Key(Key.MouseCenter).IsActive())
|
if (Input.Key(Key.MouseCenter).IsActive())
|
||||||
{
|
{
|
||||||
float sx = Input.Mouse.posChange.x;
|
float sx = Input.Mouse.posChange.x;
|
||||||
float ssx = Maths.smooth_start(sx);
|
Renderer.CameraRoot *= Matrix.R(
|
||||||
box_pose.orientation *= Quat.FromAngles(0, sx * 180.0f * Time.Stepf, 0);
|
Quat.FromAngles(0, -sx * 180.0f * Time.Stepf, 0)
|
||||||
|
);
|
||||||
|
// orbital_view
|
||||||
|
box_pose.position = Input.Head.position + Input.Head.orientation * V.XYZ(0, -0 * U.cm, -10 * U.cm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue