Ejemplo n.º 1
0
        private IntPtr allocateObb(Vector3 extents)
        {
            INTERACTION_OBB_DESCRIPTION obbDesc = new INTERACTION_OBB_DESCRIPTION();

            obbDesc.shape.type = ShapeType.OBB;
            obbDesc.extents    = extents.ToCVector();

            IntPtr obbPtr = StructAllocator.AllocateStruct(ref obbDesc);

            return(obbPtr);
        }
Ejemplo n.º 2
0
    private IntPtr allocateObb(Vector3 extents) {
      INTERACTION_OBB_DESCRIPTION obbDesc = new INTERACTION_OBB_DESCRIPTION();
      obbDesc.shape.type = ShapeType.OBB;
      obbDesc.extents = extents.ToCVector();

      IntPtr obbPtr = StructAllocator.AllocateStruct(ref obbDesc);
      return obbPtr;
    }