Esempio n. 1
0
        /// <inheritdoc/>
        public override bool Equals(object rhs)
        {
            if (rhs is HingeJointDrive)
            {
                HingeJointDrive other = (HingeJointDrive)rhs;
                return(data.speed == other.data.speed && data.gearRatio == other.data.gearRatio &&
                       data.forceLimit == other.data.forceLimit && data.freeSpin == other.data.freeSpin);
            }

            return(false);
        }
        /// <summary>Initializes the struct with default values.</summary>
        public static HingeJointDrive Default()
        {
            HingeJointDrive value = new HingeJointDrive();

            value.speed      = 0f;
            value.forceLimit = 3.40282347E+38f;
            value.gearRatio  = 1f;
            value.freeSpin   = false;

            return(value);
        }
Esempio n. 3
0
 private static extern void Internal_SetDrive(IntPtr thisPtr, HingeJointDrive drive);
Esempio n. 4
0
 private static extern void Internal_getDrive(IntPtr thisPtr, out HingeJointDrive __output);