Jump to content
  • Advertisement

Archived

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

webjedi on crack

Center of a mesh?

This topic is 5241 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

Sorry, I''m still new to this, but is there an easy way to find the center of a mesh wrt world space coordinates? I would like to have the camera follow the object while it is in motion. Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Average the values of the points in the mesh

Share this post


Link to post
Share on other sites
When you are building your mesh move it to the origin (0,0,0) before you export it. Because the mesh is built around the origin, the centre of the mesh will be wherever you specify when translating it in your game.

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!