Sign in to follow this  
Timpy123

rotate and points on shape

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this