Drawing box


got a question related to box positioning.

is it possible to draw a box diagonal??

for instance from vector ( x,y,z ) -> vector ( x+30,y, z+30 )??

thanks in advance


already figured out the best solution for my problem.

create the box and rotate it with the b.setLocalRotation( quat );

where b = Box, quat = Quaternion;

Ah,…good you found it out yourself. There are more inituitive methods:

e.g. b.getLocalRotation().fromAngleAxis(deg_in_rad,turn_axis)

so if you want it to rotate around the x_axis for 30