package ga.deluded_fruitcakes_anonymous.velocityangles
import android.graphics.Bitmap;
import android.graphics.Canvas;

/**
 * Created by azamp19 on 8/2/2016.
 */
public class PhysicalObject extends DrawableObject {
float xVel, yVel,xAcceleration,yAcceleration;
int Points;

    public PhysicalObject(Bitmap bitmap, float xPos, float yPos, float width, float height) {
        super(bitmap, xPos, yPos, width, height);
    }
    private void MoveByPhysics(){

        xVel += xAcceleration;
        yVel += yAcceleration;
        xPos  += xVel;
        yPos += yVel;
        setBounds();
    }
    @Override
    public void update(Canvas canvas){
        MoveByPhysics();
        super.update(canvas);
    }
    public boolean collidedWith(DrawableObject other){
        boolean ret = false;
        if(bounds.contains(other.bounds)) ret= true;

     return ret;
    }

}

@@ -47,17 +47,18 @@
 tyangles
+;
 %0A
-
 import a
@@ -224,14 +224,24 @@
 xVel
+ocity
 , yVel
+ocity
 ,xAc
@@ -476,16 +476,21 @@
     xVel
+ocity
  += xAcc
@@ -512,16 +512,21 @@
     yVel
+ocity
  += yAcc
@@ -557,16 +557,21 @@
  += xVel
+ocity
 ;%0A      
@@ -584,16 +584,21 @@
  += yVel
+ocity
 ;%0A      

Fix errors from Physical/Drawable.java