Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 1
    Without delving deeply into the code, the first thing that strikes me (which could be stupid) is the order of the matrices; I think the quaternion should be after the translation. This probably won't fix it, but it's worth a try. Commented Apr 25, 2012 at 1:35
  • Thanks, Ill give this a try and let you know how I get on. Commented Apr 25, 2012 at 8:45
  • Nope, sorry that didnt do the trick either. Think I will try 2 different Draw() methods, one for the box and one for the frustum (normal rotation in the box Draw and Quartenion rotation in the frustum Draw) and see how that goes. Commented Apr 25, 2012 at 9:15
  • Where you rotate fusturms (set their quaternions), did you only forget to change the indices here or is this also present in your code. Also please edit you question to include what is happening when you draw these three boxes. Commented Apr 25, 2012 at 11:08
  • What makes you think that you can create a quaternion by plugging in position component values? Commented Apr 25, 2012 at 13:04