Hello, maybe someone can help me with insim, please write pm who can. About that i will pay somthing, Insim just have little problem with angles and i don't know how to fix it! Thanks
Im using this code. Whats the problem??
Im using this code. Whats the problem??
if (C.CompCar.AngVel / 45 < 10)
{
C.NewScore = 0;
}
else if (C.CompCar.Speed / 91 < 30)
{
C.NewScore = 0;
}
else if (C.CompCar.Speed / 91 > 30 && C.CompCar.AngVel / 45 > 10)
{
if (C.CompCar.AngVel / 45 < 10)
{
C.NewScore2 += Convert.ToInt32(C.CompCar.AngVel / 360.0d);
}
C.NewScore = Convert.ToInt32(0 + (C.CompCar.AngVel / 360.0d * C.CompCar.Speed / 91) / 20);
}
C.TotalScore = 0 + (C.TotalScore + C.NewScore);
if (C.CompCar.Speed / 91 < 30 && C.CompCar.AngVel / 45 < 10)
{
C.TotalScore = 0;
C.NewScore = 0;
}
#endregion