Exemplo 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);
        }
Exemplo n.º 3
0
 private static extern void Internal_SetDrive(IntPtr thisPtr, HingeJointDrive drive);
Exemplo n.º 4
0
 private static extern void Internal_getDrive(IntPtr thisPtr, out HingeJointDrive __output);