mirror of
https://github.com/ConjureETS/MTI860_VR_Multi_Controller.git
synced 2026-03-25 21:11:14 +00:00
player joycon ajusting!
This commit is contained in:
parent
5970ed0b56
commit
9eb462dcab
@ -545,7 +545,7 @@ Rigidbody:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 3224832258464819110}
|
m_GameObject: {fileID: 3224832258464819110}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Mass: 1
|
m_Mass: 10
|
||||||
m_Drag: 0
|
m_Drag: 0
|
||||||
m_AngularDrag: 0.05
|
m_AngularDrag: 0.05
|
||||||
m_UseGravity: 1
|
m_UseGravity: 1
|
||||||
@ -619,9 +619,9 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
body: {fileID: 2949611238048620088}
|
body: {fileID: 2949611238048620088}
|
||||||
constSpeed: 1
|
constSpeed: 2
|
||||||
constRotation: 10
|
constRotation: 10
|
||||||
constUpForce: 1
|
constUpForce: 5
|
||||||
--- !u!114 &2775598781587958943
|
--- !u!114 &2775598781587958943
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@ -38,7 +38,7 @@ RenderSettings:
|
|||||||
m_ReflectionIntensity: 1
|
m_ReflectionIntensity: 1
|
||||||
m_CustomReflection: {fileID: 0}
|
m_CustomReflection: {fileID: 0}
|
||||||
m_Sun: {fileID: 705507994}
|
m_Sun: {fileID: 705507994}
|
||||||
m_IndirectSpecularColor: {r: 0.18028334, g: 0.2257134, b: 0.30692226, a: 1}
|
m_IndirectSpecularColor: {r: 0.18028378, g: 0.22571412, b: 0.30692285, a: 1}
|
||||||
m_UseRadianceAmbientProbe: 0
|
m_UseRadianceAmbientProbe: 0
|
||||||
--- !u!157 &3
|
--- !u!157 &3
|
||||||
LightmapSettings:
|
LightmapSettings:
|
||||||
@ -5033,6 +5033,7 @@ MonoBehaviour:
|
|||||||
NextScene:
|
NextScene:
|
||||||
nextMouv: 3
|
nextMouv: 3
|
||||||
target: {fileID: 1342694502}
|
target: {fileID: 1342694502}
|
||||||
|
positionManager: {fileID: 0}
|
||||||
noMovementChange: 0
|
noMovementChange: 0
|
||||||
changeMouvementForPractice: 1
|
changeMouvementForPractice: 1
|
||||||
IsQuickTeleport: 0
|
IsQuickTeleport: 0
|
||||||
@ -10351,6 +10352,7 @@ MonoBehaviour:
|
|||||||
NextScene:
|
NextScene:
|
||||||
nextMouv: 1
|
nextMouv: 1
|
||||||
target: {fileID: 1342694502}
|
target: {fileID: 1342694502}
|
||||||
|
positionManager: {fileID: 0}
|
||||||
noMovementChange: 0
|
noMovementChange: 0
|
||||||
changeMouvementForPractice: 1
|
changeMouvementForPractice: 1
|
||||||
IsQuickTeleport: 0
|
IsQuickTeleport: 0
|
||||||
@ -12583,6 +12585,7 @@ MonoBehaviour:
|
|||||||
NextScene:
|
NextScene:
|
||||||
nextMouv: 0
|
nextMouv: 0
|
||||||
target: {fileID: 1342694502}
|
target: {fileID: 1342694502}
|
||||||
|
positionManager: {fileID: 0}
|
||||||
noMovementChange: 0
|
noMovementChange: 0
|
||||||
changeMouvementForPractice: 1
|
changeMouvementForPractice: 1
|
||||||
IsQuickTeleport: 0
|
IsQuickTeleport: 0
|
||||||
|
|||||||
@ -32,8 +32,8 @@ namespace JoyCon
|
|||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
|
|
||||||
//Joycon j = JoyConManager.GetJoycon(JcLegInd);
|
Joycon j = JoyConManager.GetJoycon(JcLegInd);
|
||||||
//_playerDirection = j.GetButton(Joycon.Button.SHOULDER_2) ? Vector3.back : Vector3.forward;
|
_playerDirection = j.GetButton(Joycon.Button.SHOULDER_2) ? Vector3.back : Vector3.forward;
|
||||||
|
|
||||||
float moveHorizontal = Input.GetAxis("Horizontal");
|
float moveHorizontal = Input.GetAxis("Horizontal");
|
||||||
transform.Rotate(0.0f, moveHorizontal * constSpeed * 2, 0.0f);
|
transform.Rotate(0.0f, moveHorizontal * constSpeed * 2, 0.0f);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user