Jump to content
  • Advertisement
Sign in to follow this  
Timpy123

rotate and points on shape

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

Hi everyone, Im new here :) Im currently working on a 2D physics engine, but am having some trouble. If I have an object and shoot it at a certain point, how would I calculate the speed and angle it would fall/rotate? Also, Ive seen some examples of physics engines, and nearly all of them have large verteces (sp?) at key points of the shape. For example, a square would have four verteces at the corners. What are these used for and how can I use them in game? Thanks for any help.

Share this post


Link to post
Share on other sites
Advertisement
What do you mean by 'large vertices'? I'm not sure I understand that part of the question, but for a good introduction to 2d rigid body dynamics, take a look at this (a little down the page, under 'physics articles').

Share this post


Link to post
Share on other sites
Thanks for the reply. Sorry, my post wasnt too clear. Basically, Ive noticed in some demos that a square would have four points at the corners, which the user can sometimes drag with. Im not sure if these points are also used in the alignment of the object with a slope. I basically just wanted to know how to make an object (such as the square) line up at the same angle as a slope if it was dropped onto the slope. From there, I could try and see whether the square would topple over and slide down the slope.
That link is useful and Ive gotten through the first part, but when it comes to the angular velocity stuff, it gets a bit confusing.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!