Skip to content
Snippets Groups Projects
Commit 57cdbcfa authored by Dolbaum Maximilian's avatar Dolbaum Maximilian
Browse files

Merge branch 'master' into BulletHole-correction

parents 536c7c0a a14b71b4
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ public class JoyStickMovement : MonoBehaviour
PlayerController = GetComponent<CharacterController>();
}
void Update(){
void FixedUpdate(){
Vector3 playerOrientation = Player.instance.hmdTransform.TransformDirection(new Vector3(JoystickInput.axis.x,0,JoystickInput.axis.y));
PlayerController.Move(PlayerSpeed * Time.deltaTime * Vector3.ProjectOnPlane(playerOrientation, Vector3.up) - new Vector3(0,PlayerGravity,0)* Time.deltaTime);
}
......
......@@ -99,7 +99,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8032559651421268578}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0.1, y: 0, z: 0}
m_LocalPosition: {x: -0.1, y: -0.1, z: 0.1}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 4368455351059304986}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment