Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


(Another) Question for Bas Kuenen

This topic is 6484 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello again, I have set up the Camera you recomended and it works perfectly, but I was wondering when I use the following CObject tree: - World->Player->Camera instead of: - World->Player->CameraAim->Camera it works fine except the camera does not move with the Player, can the camera be Attached to a World Object? Also, is your Matrix Class limited to a 4X4 matrix, or can it also handle 3X3? I`m still figuring out 'Union'. Thanks again, Ozz. Edited by - Ozz on January 13, 2001 7:15:42 PM

Share this post

Link to post
Share on other sites
What code are you refering to?

As for union, it is just a way to save space. For example, if you do:
union pack { int blah; float ick; double phooey;};
Just makes pack the size of a double, since that is the biggest thing in that list. (the int & float all take up the same space as the double. the WHOLE thing is treated as a double, instead of taking up say 2+4+8 bytes, it only takes up 8 bytes. (Oh, and I forgot how many bytes those actually take up if you do it seperately...)

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!