![]() You can find a list of recommended texts in this question at the gamedev sister site. (Things once again are much hairier in 3D space.) You need to find the external forces and torques, solve for linear acceleration and rotational acceleration, and then integrate numerically.Ī good beginner's book on game physics is probably in order. Rotational behavior is an analog to Newton's second law. This is fairly straightforward in 2D physics. The primary reason you need to know the moment of inertia is so that you can simulate the response to torques that act on your object. This offset term is the mass of the object times the square of the distance to the composite center of mass. ![]() To calculate the moment of inertia of this combined object, you need to sum the moments of inertia of the individual objects and also add on offset term given by the Steiner parallel axis theorem for each individual object. When you connect two objects, the combined object has its own center of mass. Things get hairy (much, much hairier) in three dimensional space. In 2D space, rotations are described by a scalar, resistance to rotation (moment of inertia) is described by a scalar, and rotations are additive and commutative. Laurens, the physics is much simpler if you stay in two dimensional space. Game development at my university, but to my great frustration none of the teachers in their ranks are experienced in the area of physics. Step 2: Use the formula I m r 2 to calculate the moment of inertia. So if anyone could provide me with an answer, preferably with the logic behind inertia around a given centroid, I would be very thankful. Step 1: For each object, identify its mass and distance to the axis of rotation. I find this whole inertia concept quite difficult to understand as I don't have a strong physics background. Or the ones provided in an awesome collision detection & response article.īut I'm wondering how to relate this to my object structure, do I simply add all the inertia's of the shapes of the object? That's what another writer uses to calculate the inertia of triangulated polygons, he adds all the moments of inertia of the triangles. I would have no problems calculating the inertia of each individual polygon in the shape with the formulas provided on the moments of inertia Wikipedia article. So there are three layers: World, object & shape space. The shapes themselves again have their own local space. You can add convex shapes such as circles and convex polygons to this local space to form complex objects. ![]() The thing is, there are plenty of proven formulas to calculate inertia around a centroid of a convex polygon, but my structure is slightly different: I have game-objects with their own local space. I'm having problems finding a good formula to calculate the inertia of my game objects. I'm writing a physics library for my game engine (2d, currently in actionscript3, but easily translatable to C based languages). I figured someone probably asked this question before but I wasn't able to find an answer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |