the3dbanana

0 answers · asked · Lesson: Setting up the Spaceship · Course: Creating a 2D Space Shooter

Rigidbody2D.addforce when i type add force, it gives me an error saying "Rigidbody 2D does not have a definition for AddForce

This is the line of code:

Rigidbody2D.addforce(transform.up * (Speed * Accel_Rate));

I have a rigid body on the object.