-
Dot product of world coordinates?
Hi!
Since this is my first post I might as well introduce myself. I'm currently in the third year of a master's program in media technology at the University of Linköping, Sweden. I've been programming for a couple of years, and right now I'm in the middle of creating some base classes for upcoming simulation projects.
So, the problem is this:
Currently I've set up a scene with a plane with a cube hovering over it. What I'd like to do is to calculate the dot product of the center of the cube and the plane's normal. Both the plane and the cube are derived from a Shape-class. I want to implement the 'getWorldCoordinates()' for the shapes (or something like it). But I can't get my head around how to do it. Since I don't really know what I want myself, I found it hard to search any forums for it. I'm guessing it has to do with transforming to/from GL_MODELVIEW_MATRIX or something like it.
I appreciate any help!
Thanks!
Marcus
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules