Hi VeT,

if draw_box3d doesn't take rotation into account, like EvilSOB said, you have to translate the vectors you give to draw_box3d yourself before calling the function.

There are two practical ways of doing this.
The first one I can think of would be a rotation matrix which you multiply with the vectors.
The other would be quaternions.

I won't go into detail of these two methods now as this would be too much as well as other resources in the internet will explain it much better than I am able to. Just try to throw "rotation matrix" and "quaternion" into google.

Though I gotta warn you! These mathematics are anything but trivial!
Most probably there is a better solution for this problem though that's the only idea I got now.

greetings
KDuke

EDIT:
There just comes a resource into my mind which might be very worthy at this approach.
Game Physics Engine Development

Last edited by KDuke; 03/11/09 19:26.

Using A7 Free
Click and join the 3dgs irc community!
Room: #3dgs