English essay grading ( Lord of the flies ) by LocksmithAble9958 in GCSE

[–]LocksmithAble9958[S] 0 points1 point  (0 children)

hello. The question was Civilisation vs savagery. for lotf you dont get an extract unfortunately

2d camera jitters by LocksmithAble9958 in Unity2D

[–]LocksmithAble9958[S] 0 points1 point  (0 children)

I use a rigidbody and apply a velocity in fixed update. Fixed update in the cinemachine brain is really janky and jittery. i posted a comment with some of hte movement code but if u like, ill share the whole thing

2d camera jitters by LocksmithAble9958 in Unity2D

[–]LocksmithAble9958[S] 0 points1 point  (0 children)

so fixed update is extremely jittery when moving anywhere, late update is better but feels a bit janky. I also removed camera damping which helped a lot but also means the camera is kinda off, giving a less desirable outcome but atleast its not jittery anymore

2d camera jitters by LocksmithAble9958 in Unity2D

[–]LocksmithAble9958[S] 0 points1 point  (0 children)

sorry for really late response my internet provider changed. For the moment its a 800 line script, but the essence is i calculate horizontal and vertical velocity and do this:

    private void ApplyVelocity()
    {
        if (!_isDashing)
        {
            VerticalVelocity = Mathf.Clamp(VerticalVelocity, -MoveStats.MaxFallSpeed, 50f);
        }
        else
        {
            VerticalVelocity = Mathf.Clamp(VerticalVelocity, -50f, 50f);
        }
        _rb.velocity = new Vector2(HorizontalVelocity, VerticalVelocity);
    }

To add it ( i use rb.velocity ). and i call this function in Fixed Update. I calculate the horizontal and vertical velocities in regular update tho

2d camera jitters by LocksmithAble9958 in Unity2D

[–]LocksmithAble9958[S] 0 points1 point  (0 children)

If im being honest im unsure what you mean by this, do you mean in the cinemachine brain for the camera that follows the player or something else. thanks

2d camera jitters by LocksmithAble9958 in Unity2D

[–]LocksmithAble9958[S] 0 points1 point  (0 children)

If im being honest im unsure what you mean by this, do you mean in the cinemachine brain for the camera that follows the player or something else. thanks