|
|
"pbrants" <pbr### [at] telenetbe> wrote:
> Where can I retrieve the new position after a rotation (or transformation in
> general) of a point (let's say a center of a sphere or box) when I need that for
> future references or calculations?
Hi Paul,
min_extent() & max_extent() will give you the bounding box of an object, and
with that info you can find its center.
You can also use vrotate() to rotate a vector. For every transformation you give
your object, transform a vector. This is useful whenever min_extent() &
max_extent() won't give you accurate results (which can happen if you've used a
lot of CSG), or if you want to keep track of say, a specific corner of a box.
Sam
Post a reply to this message
|
|