public NewtonVehicle(Object container) { this.container = container; collisionGroupID = 0; materialName = ""; mass = 1.0f; centerOfMass = new Vector3(); shape = ShapeType.ConvexHull; shapeData = new List <float>(); momentOfInertia = new Vector3(); pickable = false; collidable = false; interactable = false; manipulatable = false; applyGravity = true; neverDeactivate = false; modified = false; shapeModified = false; physicsWorldTransform = Matrix.Identity; initialWorldTransform = Matrix.Identity; compoundInitialWorldTransform = Matrix.Identity; initialLinearVelocity = new Vector3(); initialAngularVelocity = new Vector3(); linearDamping = 0.0f; angularDamping = -Vector3.One; tires = new NewtonTire[4]; for (int i = 0; i < tires.Length; i++) { tires[i] = null; } tireTable = new Dictionary <IntPtr, TireID>(); joint = IntPtr.Zero; transformCallback = null; forceCallback = null; tireUpdate = null; }
public NewtonVehicle(Object container) { this.container = container; collisionGroupID = 0; materialName = ""; mass = 1.0f; centerOfMass = new Vector3(); shape = ShapeType.ConvexHull; shapeData = new List<float>(); momentOfInertia = new Vector3(); pickable = false; collidable = false; interactable = false; manipulatable = false; applyGravity = true; neverDeactivate = false; modified = false; shapeModified = false; physicsWorldTransform = Matrix.Identity; initialWorldTransform = Matrix.Identity; compoundInitialWorldTransform = Matrix.Identity; initialLinearVelocity = new Vector3(); initialAngularVelocity = new Vector3(); linearDamping = 0.0f; angularDamping = -Vector3.One; tires = new NewtonTire[4]; for(int i = 0; i < tires.Length; i++) tires[i] = null; tireTable = new Dictionary<IntPtr, TireID>(); joint = IntPtr.Zero; transformCallback = null; forceCallback = null; tireUpdate = null; }