I’m trying to use the Wheel C# script from the “alternate car phyisics” from the tutorial because i want to use the implemented “Pacejka Magic Formula” in it.
I have my own engine and gearbox physics allready and i want to use some output values from my scripts in the tutorial wheel script.
The problem is that i have my files in JavaScript and i don’t know how to code in c#.
So far i have the wheels working the only problem is that i need the C# to read the drive wheel force from my own JavaScript instead of the “carController.C#”
So. the question is. How can i get a value from a JavaScript using C#?
said other way,
to do this:
//AnyJS\
static var AnyVar : float;
//OtherJS\
OtherVar = AnyJS.AnyVar;
but in C#