Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

ofPath rotation

$
0
0

@Hennio wrote:

void testApp::setup()
{
	path.arc(ofVec3f(), 100, 100, 0.0f, 90.0f, true);
	path.arc(ofVec3f(), 50, 50, 90.0f, 0.0f, false);
	path.close();

	path.rotate(90, ofVec3f(0,1,0));
}

void testApp::draw()
{
	cam.begin();

		ofDrawAxis(200);
		path.draw();

	cam.end();
}

This should rotate the of path in the Y axis, moving it from XY plane to ZY plane, but it seems to rotate always around the Z axis.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles