Ejemplo n.º 1
0
        /// <summary>
        /// Gets the unscaled points.
        /// </summary>
        /// <returns></returns>
        public float3[] GetUnscaledPoints()
        {
            var retval   = new float3[BtConvexHullShape.NumPoints];
            var btPoints = BtConvexHullShape.UnscaledPoints;

            for (int i = 0; i < BtConvexHullShape.NumPoints; i++)
            {
                retval[i] = Translator.BtVector3ToFloat3(btPoints[i]);
            }
            return(retval);
        }
        /// <summary>
        /// Gets the axis.
        /// </summary>
        /// <param name="axisIndex">Index of the axis.</param>
        /// <returns></returns>
        public float3 GetAxis(int axisIndex)
        {
            var retval = Translator.BtVector3ToFloat3(_g6dofci.GetAxis(axisIndex));

            return(retval);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Gets the scaled point.
        /// </summary>
        /// <param name="index">The index.</param>
        /// <returns></returns>
        public float3 GetScaledPoint(int index)
        {
            var retval = Translator.BtVector3ToFloat3(BtConvexHullShape.GetScaledPoint(index));

            return(retval);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Gets the point for angle.
        /// </summary>
        /// <param name="fAngleInRadius">The f angle in radius.</param>
        /// <param name="fLength">Length of the f.</param>
        /// <returns></returns>
        public float3 GetPointForAngle(float fAngleInRadius, float fLength)
        {
            var retval = Translator.BtVector3ToFloat3(_cti.GetPointForAngle(fAngleInRadius, fLength));

            return(retval);
        }