Example #1
0
    void FixedUpdate()
    {
        Vector3 velocity = character.GetDeltaPosition() / Time.deltaTime;

        motorMoving.ApplyMoving(this, ref velocity);
        motorMoving.ApplyGravity(this, ref velocity);
        motorJumping.ApplyJumping(this, ref velocity);

        character.Move(velocity * Time.deltaTime);
    }
    void FixedUpdate()
    {
        Vector3 velocity = character.GetDeltaPosition() / Time.deltaTime;

        ApplyMoving(ref velocity);
        ApplyGravity(ref velocity);
        ApplyEmersion(ref velocity);

        character.Move(velocity * Time.deltaTime);
    }