In the car race on the island tut they have this text as part of the “Car” script.
var frontWheels : Transform[ ];
var rearWheels : Transform[ ];
private var wheels : Wheel[ ];
wheels = new Wheel[frontWheels.Length + rearWheels.Length];
private var wfc : WheelFrictionCurve;
What I don’t understand is this, “[ ]” at the end of Transform and Wheel. What do the brackets do?
I’m not sure what’s going on w/ the wheels designation. They’re obviously passing a value from frontWheels and rearWheels but why the use of “new” and .length I don’t know.
wfc variable??? is WheelFrictionCurve an official variable type? If it’s a variable type defined w/in the script I don’t see where.
Any help in this would be greatly appreciated.