-elevator panel buttons now support position offsets
-fixed manual sizing parameters of the panel buttons
-added support for mounting zipfiles into virtual directories
+-added the ability to spin the camera (Z-axis rotation)
Version 1.4.1 (2.0 Alpha 4.1)
-------------------------
F11 - Take screenshot
Shift - Run (hold down with other keys)
Control - Walk slowly (hold down with other keys)
-Alt - Strafe (hold down with other keys)
+Alt + arrow keys - Strafe
+Alt + PgUp - Spin right
+Alt + PgDown - Spin left
--- Debug options ---
Other functions are available via a Crystal Space plugin called BugPlug.
void Camera::Look(float speed)
{
+ //look up/down by rotating camera on X axis
desired_angle_velocity.x = 150.0f * speed * cfg_rotate_maxspeed;
}
void Camera::Turn(float speed)
{
+ //turn camera by rotating on Y axis
desired_angle_velocity.y = 100.0f * speed * cfg_rotate_maxspeed * cfg_walk_maxspeed_multreal;
}
+void Camera::Spin(float speed)
+{
+ //spin camera by rotating on Z axis
+ desired_angle_velocity.z = 150.0f * speed * cfg_rotate_maxspeed;
+}
+
void Camera::InterpolateMovement()
{
//calculate acceleration
void Jump();
void Look(float speed);
void Turn(float speed);
+ void Spin(float speed);
void InterpolateMovement();
void SetGravity(float gravity);
float GetGravity();
Simcore->camera->Float(1);
if (wxGetKeyState(WXK_DOWN) || wxGetKeyState((wxKeyCode)'s'))
Simcore->camera->Float(-1);
+ if (wxGetKeyState(WXK_PAGEUP))
+ Simcore->camera->Spin(1);
+ if (wxGetKeyState(WXK_PAGEDOWN))
+ Simcore->camera->Spin(-1);
}
else
{