public Tank(Vector3 position) { Body = new Box(position, 4, .5f, 5, 20); Body.CollisionInformation.LocalPosition = new Vector3(0, .8f, 0); var treadDescription = new TreadSegmentDescription { Width = 0.5f, Radius = 0.5f, Mass = 1, Friction = 2f, MotorSoftness = 0,//0.3f, MotorMaximumForce = 30, SuspensionDamping = 70, SuspensionStiffness = 300, SuspensionLength = 1 }; RightTread = new Tread(Body, new Vector3(-1.8f, -.2f, -2.1f), 5, 1, treadDescription); LeftTread = new Tread(Body, new Vector3(1.8f, -.2f, -2.1f), 5, 1, treadDescription); Turret = new Turret(Body, new Vector3(0, 1.5f, 0.5f)); }
public Tank(Vector3 position) { Body = new Box(position, 4, (Fix64).5m, 5, 20); Body.CollisionInformation.LocalPosition = new Vector3(0, (Fix64).8m, 0); var treadDescription = new TreadSegmentDescription { Width = (Fix64)0.5m, Radius = (Fix64)0.5m, Mass = 1, Friction = (Fix64)2f, MotorSoftness = 0,//0.3m, MotorMaximumForce = 30, SuspensionDamping = 70, SuspensionStiffness = 300, SuspensionLength = 1 }; RightTread = new Tread(Body, new Vector3((Fix64)(-1.8m), (Fix64)(-.2m), (Fix64)(-2.1m)), 5, 1, treadDescription); LeftTread = new Tread(Body, new Vector3((Fix64)1.8m, (Fix64)(-.2m), (Fix64)(-2.1m)), 5, 1, treadDescription); Turret = new Turret(Body, new Vector3(0, (Fix64)1.5m, (Fix64)0.5m)); }
public Tank(Vector3 position) { Body = new Box(position, 4, .5f, 5, 20); Body.CollisionInformation.LocalPosition = new Vector3(0, .8f, 0); var treadDescription = new TreadSegmentDescription { Width = 0.5f, Radius = 0.5f, Mass = 1, Friction = 2f, MotorSoftness = 0,//0.3f, MotorMaximumForce = 30, SuspensionDamping = 70, SuspensionStiffness = 300, SuspensionLength = 1 }; RightTread = new Tread(Body, new Vector3(-1.8f, -.2f, -2.1f), 5, 1, treadDescription); LeftTread = new Tread(Body, new Vector3(1.8f, -.2f, -2.1f), 5, 1, treadDescription); Turret = new Turret(Body, new Vector3(0, 1.5f, 0.5f)); }