|
|
@ -96,10 +96,10 @@ public class OarController : MonoBehaviour |
|
|
|
Quaternion rotation = Quaternion.LookRotation(forward, direction); |
|
|
|
|
|
|
|
|
|
|
|
MoveOarToPosition(m_rightHand.transform.position - direction * m_distanceFromRightHand); |
|
|
|
//m_oarRigidbody.MoveRotation(rotation);
|
|
|
|
//m_oarRigidbody.MovePosition(m_rightHand.transform.position - direction * m_distanceFromRightHand);
|
|
|
|
MoveOarToRotation(rotation); |
|
|
|
//MoveOarToPosition(m_rightHand.transform.position - direction * m_distanceFromRightHand);
|
|
|
|
m_oarRigidbody.MoveRotation(rotation); |
|
|
|
m_oarRigidbody.MovePosition(m_rightHand.transform.position - direction * m_distanceFromRightHand); |
|
|
|
//MoveOarToRotation(rotation);
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
@ -134,7 +134,7 @@ public class OarController : MonoBehaviour |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
void OnCollisionEnter(Collision collision) |
|
|
|
{ |
|
|
|
|
|
|
@ -152,7 +152,7 @@ public class OarController : MonoBehaviour |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
#endregion Class Functionality
|
|
|
|
|
|
|
|