Yep, only if you tell it to do so:
Catapult(double[] speedCat , int []angleCat)
{
speedV= speedCat;
speed = new double[speedCat.length];
// .... etc...
Type: Posts; User: curmudgeon
Yep, only if you tell it to do so:
Catapult(double[] speedCat , int []angleCat)
{
speedV= speedCat;
speed = new double[speedCat.length];
// .... etc...
Check to see what variable is null on that line. Once you've done this and then looked in your code to see where you've initialized that variable, the problem and solution will become obvious.