Commit 0f57b5eb authored by CHEEKHOOREE LUCAS's avatar CHEEKHOOREE LUCAS
Browse files

update carstats

parent 54d1d6fc
......@@ -86,8 +86,29 @@ public class CarStatsData : ICar
public virtual EntityInfo ToEntityInfo(byte id, EntityDetails details,
Vect3 position, Quat4 rotation, string username)
{
float defaultStiffness = 0f;
switch (details.type)
{
case EntityType.DEMOLISHER:
defaultStiffness = 5f;
break;
case EntityType.DAYTONA:
defaultStiffness = 4f;
break;
case EntityType.MUSCLE:
defaultStiffness = 5f;
break;
case EntityType.PANDA:
defaultStiffness = 4f;
break;
default:
defaultStiffness = 5f;
break;
}
return new EntityInfo(id, details, centerOfMass,
3f, this, position, rotation, username);
defaultStiffness, this, position, rotation, username);
}
}
......
......@@ -6,7 +6,7 @@ public class Daytona : CarStatsData
{
public Daytona()
: base(90, 40, 1500, 800, 1000, 400, 50, 20, 0.05f,
: base(130, 50, 6000, 1200, 2000, 800, 50, 4, 0.05f,
new Vect3(0, -1f, 0)) // TODO Real stats
{ }
......
......@@ -6,7 +6,7 @@ public class Muscle : CarStatsData
{
public Muscle()
: base(90, 40, 1500, 800, 1000, 400, 50, 20, 0.05f,
: base(110, 40, 4000, 800, 1500, 600, 50, 20, 0.05f,
new Vect3(0, -1f, 0)) // TODO Real stats
{ }
......
......@@ -5,7 +5,7 @@ public class Panda : CarStatsData
{
public Panda()
: base(90, 40, 1500, 800, 1000, 400, 50, 20, 0.05f,
: base(100, 40, 2000, 900, 1200, 600, 50, 20, 0.05f,
new Vect3(0, -1f, 0))
{ }
......
/** This file was generated last on Sun 09 May 2021 10:43:08 PM CEST */
/* This file was generated last on Mon 10 May 2021 05:15:52 PM CEST */
#define UNITY
using Communication.Connection;
......@@ -326,8 +326,29 @@ public class CarStatsData : ICar
public virtual EntityInfo ToEntityInfo(byte id, EntityDetails details,
Vect3 position, Quat4 rotation, string username)
{
float defaultStiffness = 0f;
switch (details.type)
{
case EntityType.DEMOLISHER:
defaultStiffness = 5f;
break;
case EntityType.DAYTONA:
defaultStiffness = 4f;
break;
case EntityType.MUSCLE:
defaultStiffness = 5f;
break;
case EntityType.PANDA:
defaultStiffness = 4f;
break;
default:
defaultStiffness = 5f;
break;
}
return new EntityInfo(id, details, centerOfMass,
3f, this, position, rotation, username);
defaultStiffness, this, position, rotation, username);
}
}
......@@ -851,7 +872,7 @@ public class Daytona : CarStatsData
{
public Daytona()
: base(90, 40, 1500, 800, 1000, 400, 50, 20, 0.05f,
: base(130, 50, 6000, 1200, 2000, 800, 50, 4, 0.05f,
new Vect3(0, -1f, 0)) // TODO Real stats
{ }
......@@ -866,7 +887,7 @@ public class Muscle : CarStatsData
{
public Muscle()
: base(90, 40, 1500, 800, 1000, 400, 50, 20, 0.05f,
: base(110, 40, 4000, 800, 1500, 600, 50, 20, 0.05f,
new Vect3(0, -1f, 0)) // TODO Real stats
{ }
......@@ -906,7 +927,7 @@ public class Panda : CarStatsData
{
public Panda()
: base(90, 40, 1500, 800, 1000, 400, 50, 20, 0.05f,
: base(100, 40, 2000, 900, 1200, 600, 50, 20, 0.05f,
new Vect3(0, -1f, 0))
{ }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment