bugfix: camera stuttering when humbie touched the player
This commit is contained in:
@@ -450,8 +450,10 @@ namespace RebootReality.jelycho.Player {
|
||||
} else {
|
||||
InterpolateActorState(deltaTime);
|
||||
}
|
||||
}
|
||||
|
||||
TickCharacterRotation(deltaTime);
|
||||
void LateUpdate() {
|
||||
TickCharacterRotation(Time.deltaTime);
|
||||
}
|
||||
|
||||
protected override void OnActorCommandServer(ulong senderID, ActorCommand actorCommand) {
|
||||
@@ -656,13 +658,12 @@ namespace RebootReality.jelycho.Player {
|
||||
m_CurrentCameraBobbing = Mathf.MoveTowards(m_CurrentCameraBobbing,
|
||||
m_TargetCameraBobbing,
|
||||
m_CameraBobbingTransitionSpeed * deltaTime);
|
||||
//m_Camera.SetBobbing(m_CurrentCameraBobbing);
|
||||
m_Camera.SetBobbing(m_CurrentCameraBobbing);
|
||||
|
||||
m_Camera.SetBobbing(0.0f);
|
||||
// m_CameraSpring.UpdateSpring(deltaTime,
|
||||
// m_CharacterForwardTransform.up,
|
||||
// m_CharacterForwardTransform.right,
|
||||
// m_CharacterForwardTransform.forward);
|
||||
m_CameraSpring.UpdateSpring(deltaTime,
|
||||
m_CharacterForwardTransform.up,
|
||||
m_CharacterForwardTransform.right,
|
||||
m_CharacterForwardTransform.forward);
|
||||
}
|
||||
|
||||
void SenseInteractable() {
|
||||
@@ -881,7 +882,6 @@ namespace RebootReality.jelycho.Player {
|
||||
}
|
||||
|
||||
// Aim Target adjustment
|
||||
// @BUG: when humbie interacts with a player then a camera is shaking
|
||||
m_HeadAimTargetTransform.position = (float3) m_HeadBoneTransform.position + LookDirection * 5.0f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user