tet commit
This commit is contained in:
@@ -854,18 +854,11 @@ namespace RebootReality.jelycho.Player {
|
||||
m_CharacterTurnVelocity = rotateCharacterSpeed * dt;
|
||||
m_CharacterTurnVelocitySmooth = m_CharacterTurnVelocity;
|
||||
|
||||
// var newForward = Vector3.RotateTowards(currentCharacterForward,
|
||||
// targetCharacterForward,
|
||||
// math.radians(m_CharacterTurnVelocity),
|
||||
// 0.0f);
|
||||
// m_CharacterForwardTransform.forward = newForward;
|
||||
|
||||
float newYaw = Mathf.MoveTowardsAngle(m_Locomotion.YawRotation,
|
||||
m_Camera.Yaw,
|
||||
m_CharacterTurnVelocity);
|
||||
newYaw = m_Camera.Yaw;
|
||||
// s_Logger.Info($"YAW: {newYaw}");
|
||||
m_Locomotion.YawRotation = newYaw;
|
||||
var newForward = Vector3.RotateTowards(currentCharacterForward,
|
||||
targetCharacterForward,
|
||||
math.radians(m_CharacterTurnVelocity),
|
||||
0.0f);
|
||||
m_CharacterForwardTransform.forward = newForward;
|
||||
}
|
||||
|
||||
// Aim Target adjustment
|
||||
|
||||
Reference in New Issue
Block a user