physics::MOI2D Class Reference

#include <moi.h>

List of all members.

Public Member Functions

 MOI2D ()
 MOI2D (Body2D *body)
bool isInfinite () const
Rotation2D getRotationChange (const Vector2D &impulse, const Vector2D &offset) const


Detailed Description

Moment of Inertia (2D)

Constructor & Destructor Documentation

physics::MOI2D::MOI2D (  )  [inline]

Creates a MOI object that prevents rotation.

MOI2D::MOI2D ( Body2D body  ) 

Calculates the moment of inertia for a rigid body.


Member Function Documentation

bool physics::MOI2D::isInfinite (  )  const [inline]

Return true if this MOI prevents rotation. To be renamed?

Rotation2D physics::MOI2D::getRotationChange ( const Vector2D impulse,
const Vector2D offset 
) const [inline]

Calculate the change of rotation if an impulse were to be applied at a given position.


The documentation for this class was generated from the following files:

Generated on Thu Apr 23 22:51:40 2009 for Large Polygon Collider - Modular 2D/3D Physics Engine by  doxygen 1.5.6