1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Parallelepiped

Discussion in 'Development' started by fevio, Jun 8, 2020.

  1. fevio

    fevio Spider Jockey

    Messages:
    33
    Is possible create a parallelepiped from high,and wides?
    $xc = $sender->getX();
    $yc = $sender->getY();
    $zc = $sender->getZ();
    $l = $args[0]/2;
    $l2 = $args[1]/2;
    $h = $args[2]/2;
    $level = $sender->getLevel();
    for($x = $xc - $l; $x <= $xc + $l; $x++) {
    for($y = $yc - $l2; $y <= $yc + $l2; $y++) {
    for($z = $zc - $h; $z <= $zc + $h; $z++) {
    }
    }
    }
    I have tried the same code of a cube , but i do not understand why $h became the wides , and $l2 the $h ....
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.