so i just want to make a simple movement controls
but it gives me these to errors btw this is 2d
Assets\playermovement.cs(14,50): error CS1503: Argument 1: cannot convert from ‘int’ to ‘UnityEngine.Vector2’
Assets\playermovement.cs(14,53): error CS1503: Argument 2: cannot convert from ‘int’ to ‘UnityEngine.ForceMode2D’
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class playermovement : MonoBehaviour
{
public float f;
public Rigidbody2D rb;
// Update is called once per frame
void FixedUpdate()
{
if (Input.GetKeyDown("w")) { rb.AddForce(0, 100); }
}
}