crashcat docs
    Preparing search index...

    Type Alias MotorSettings

    settings for a constraint motor

    type MotorSettings = {
        maxForceLimit: number;
        maxTorqueLimit: number;
        minForceLimit: number;
        minTorqueLimit: number;
        springSettings: springSettings.SpringSettings;
    }
    Index

    Properties

    maxForceLimit: number

    Maximum force to apply in case of a linear constraint (N). Not used when motor is an angular motor.

    maxTorqueLimit: number

    Maximum torque to apply in case of an angular constraint (N*m). Not used when motor is a position motor.

    minForceLimit: number

    Minimum force to apply in case of a linear constraint (N). Usually this is -maxForceLimit unless you want a motor that can e.g. push but not pull. Not used when motor is an angular motor.

    minTorqueLimit: number

    Minimum torque to apply in case of an angular constraint (N*m). Usually this is -maxTorqueLimit unless you want a motor that can e.g. push but not pull. Not used when motor is a position motor.

    Settings for the spring that is used to drive to the position target. Not used when motor is a velocity motor.