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

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

Constructs a new suspension for a wheel.
public WheelSuspension ( float stiffnessConstant, float dampingConstant, Vector3 localDirection, float restLength, Vector3 localAttachmentPoint ) : BEPUphysics.Constraints
stiffnessConstant float Strength of the spring. Higher values resist compression more.
dampingConstant float Damping constant of the spring. Higher values remove more momentum.
localDirection Vector3 Direction of the suspension in the vehicle's local space. For a normal, straight down suspension, this would be (0, -1, 0).
restLength float Length of the suspension when uncompressed.
localAttachmentPoint Vector3 Place where the suspension hooks up to the body of the vehicle.
Результат BEPUphysics.Constraints
        public WheelSuspension(float stiffnessConstant, float dampingConstant, Vector3 localDirection, float restLength, Vector3 localAttachmentPoint)
        {
            SpringSettings.StiffnessConstant = stiffnessConstant;
            SpringSettings.DampingConstant = dampingConstant;
            LocalDirection = localDirection;
            RestLength = restLength;
            LocalAttachmentPoint = localAttachmentPoint;
        }

Same methods

WheelSuspension::WheelSuspension ( Wheel wheel ) : BEPUphysics.Constraints