Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

ofPolyline.getRotationAtIndexInterpolated

$
0
0

@Sam_Mattacott wrote:

Does anyone know how I can canver the ofVec3f that this function gives me into a usable float value for rotation?

I'm want to find the roation at the end of a polyline so that I can align another polyline on the end of it using a push/pop matrix.

This lets me make segments of a curve at/around the origin in a regular way and then move them into place at the end of the curve. I can also delete segments when they're no longer needed without having to recalculate the path each time (this is important as I'm intended to build a mesh around each path segment)

The documentation stated that the function returns a rotation vector but I don't really understand what that means or how I can apply it to my problem. Does anyone know or can point me in the right direction?

Thank you!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles