BEPUphysics.Vehicle.Vehicle.Vehicle C# (CSharp) Метод

Vehicle() публичный Метод

Constructs a vehicle.
public Vehicle ( Entity shape, IEnumerable wheelList ) : System
shape Entity Body of the vehicle.
wheelList IEnumerable List of wheels of the vehicle.
Результат System
        public Vehicle(Entity shape, IEnumerable<Wheel> wheelList)
        {
            IsUpdatedSequentially = false;
            Body = shape;
            Body.activityInformation.IsAlwaysActive = true;     
            //The body is always active, so don't bother with stabilization either.
            //Stabilization can introduce artifacts as well.
            body.activityInformation.AllowStabilization = false;
            foreach (Wheel wheel in wheelList)
            {
                AddWheel(wheel);
            }
        }

Same methods

Vehicle::Vehicle ( Entity shape ) : System