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

Question about Quaternion rotation problems

$
0
0

@AceSlowman wrote:

Trying to simplify my original problems, and I think I have it condensed as well as I can. Right now, I have two target points. Between those points, I build a line that matches the length between it's "target" points. I then am trying to use quaternions to rotate that line appropriately, and translate it into place, effectively placing it perfectly between the two target points.

ofApp.cpp
http://pastebin.com/SyMhMW6i

ofApp.h
http://pastebin.com/3u2DPp9J

Currently, I can't seem to get rotation around the x axis to work properly. There are other placements of those target points that work fine, when the line remains flush with the x axis, but any z-depth and it's stuck.

Any tips?

Thank you

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles