Object rotation angle

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 02/10/2003 at 15:52, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.200 
Platform:      
Language(s) :     C++  ;

---------
My 3D Math is not great and im having trouble trying to rotate an object to the same direction a Polygon is facing.
At first I thought I would calculate the normal of a polygon to determine the direction my object needs to be. But I dont know how to use that to rotate the object in the same direction as the normal.
Any help is much appreciated

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/10/2003 at 14:49, xxxxxxxx wrote:

you could make a vector  and convert it with VectorToHPB()

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 07/10/2003 at 03:32, xxxxxxxx wrote:

Yea, thats what I did in the end.
Thanks anyway