#include <moi.h>
Public Member Functions | |
MOI2D () | |
MOI2D (Body2D *body) | |
bool | isInfinite () const |
Rotation2D | getRotationChange (const Vector2D &impulse, const Vector2D &offset) const |
physics::MOI2D::MOI2D | ( | ) | [inline] |
Creates a MOI object that prevents rotation.
MOI2D::MOI2D | ( | Body2D * | body | ) |
Calculates the moment of inertia for a rigid body.
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.