Untitled
unknown
csharp
2 years ago
543 B
4
Indexable
// Add this to the beginning of GetInputTranslationDirection() Vector3 direction = TouchControlsKit.TCKInput.GetAxis("Joystick"); if (direction.magnitude > 0) { direction.z = direction.y; direction.y = 0; return direction; } // Add this to the beginning of Update() Vector2 look = TouchControlsKit.TCKInput.GetAxis("Touchpad") * 8; m_TargetCameraState.yaw += look.x; m_TargetCameraState.pitch -= look.y;
Editor is loading...