Rotations

Hi,

When looking at angles, such as GH Rotation, are the units in radians,
or degrees? I couldn’t find anything in the documentation to help me
out on this…

Thanks,
Sarah

Hi Sarah

The various rotational joints always measures in radians. When they
are being used by the application, the radians are sometimes converted
into degrees. So if there is no conversion in the apapplication the
number should be in radians.

Best regards
Soeren AnyBody Support

— In anyscript@yahoogroups.com, “Sarah R. Sullivan” <sarsulli@e…>
wrote:
>
> Hi,
>
> When looking at angles, such as GH Rotation, are the units in
radians,
> or degrees? I couldn’t find anything in the documentation to help me
> out on this…
>
> Thanks,
> Sarah
>

Hi all.

Thanks for the advice on the previous one. It works now.

Now I am trying to rotate the graphics “overlay” of a part around several axis
but have not been able to do so.

This works for one rotation but I would like to add some more rotations:
Axes = RotMat(90*pi/180,x);

When I try to add more rotations, I get this:

Supported function use :
RotMat ( AnyFloat, AnyEnum )
RotMat ( AnyFloat[3], AnyFloat[3], AnyFloat[3] )

I have tried to apply this format but have not been succesful. Can you give
me an example how to do this or point me to a tutorial, where this is shown.

Thanks in advance,

-Jari

[Non-text portions of this message have been removed]

Hi Jari

If you want to rotate around several axes you may simply multiply
the rotation matrices.

Here is a small example:

AnyMatrix AxesRotX = RotMat(90pi/180,x);
AnyMatrix AxesRotY = RotMat(90
pi/180,y);

AnyMatrix AxesRotXY=AxesRotX*AxesRotY;

Please remark that the sequence of the multiplication will change
the result.

Best regards
Søren AnyBody Support

— In anyscript@yahoogroups.com, JARI PALLARI <j.pallari@b…>
wrote:
>
> Hi all.
>
> Thanks for the advice on the previous one. It works now.
>
> Now I am trying to rotate the graphics “overlay” of a part
around several axis but have not been able to do so.
>
> This works for one rotation but I would like to add some more
rotations:
> Axes = RotMat(90*pi/180,x);
>
> When I try to add more rotations, I get this:
>
> Supported function use :
> RotMat ( AnyFloat, AnyEnum )
> RotMat ( AnyFloat[3], AnyFloat[3], AnyFloat[3] )
>
> I have tried to apply this format but have not been succesful.
Can you give me an example how to do this or point me to a
tutorial, where this is shown.
>
> Thanks in advance,
>
> -Jari
>
>
>
> [Non-text portions of this message have been removed]
>

Hi Søren,

It works now. Thanks again.

-Jari

AnyBody Support <support@anybodytech.com> wrote: Hi Jari

If you want to rotate around several axes you may simply multiply
the rotation matrices.

Here is a small example:

AnyMatrix AxesRotX = RotMat(90pi/180,x);
AnyMatrix AxesRotY = RotMat(90
pi/180,y);

AnyMatrix AxesRotXY=AxesRotX*AxesRotY;

Please remark that the sequence of the multiplication will change
the result.

Best regards
Søren AnyBody Support

— In anyscript@yahoogroups.com, JARI PALLARI
wrote:
>
> Hi all.
>
> Thanks for the advice on the previous one. It works now.
>
> Now I am trying to rotate the graphics “overlay” of a part
around several axis but have not been able to do so.
>
> This works for one rotation but I would like to add some more
rotations:
> Axes = RotMat(90*pi/180,x);
>
> When I try to add more rotations, I get this:
>
> Supported function use :
> RotMat ( AnyFloat, AnyEnum )
> RotMat ( AnyFloat[3], AnyFloat[3], AnyFloat[3] )
>
> I have tried to apply this format but have not been succesful.
Can you give me an example how to do this or point me to a
tutorial, where this is shown.
>
> Thanks in advance,
>
> -Jari
>
>
>
> [Non-text portions of this message have been removed]
>

AnyBody Technology provides free support on the use of the AnyBody Modeling
System and the Scripting language AnyScript. Other users are welcome to join
the discussions.
Yahoo! Groups Links

[Non-text portions of this message have been removed]