org.vizzini.game.simulation.force
Interface IForceConsumer

All Superinterfaces:
IStateful
All Known Subinterfaces:
IPhysicalObject
All Known Implementing Classes:
AbstractPhysicalObject, DefaultPhysicalObject

public interface IForceConsumer
extends IStateful

Defines methods required by a force consumer for a simulation.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Method Summary
 void applyForce(Vector force)
          Apply the given force through the center of mass to this object.
 void applyForce(Vector force, Vector position)
          Apply the given force at the given position to this object.
 void applyForceLocal(Vector force, Vector position)
          Apply the given force at the given position to this object where these vectors are expressed in local coordinates.
 double getMass()
          Return the mass in kg.
 
Methods inherited from interface org.vizzini.math.IStateful
getAbsoluteState, getState, getStatefulParent, setStatefulParent
 

Method Detail

applyForce

void applyForce(Vector force)
Apply the given force through the center of mass to this object.

Parameters:
force - Force vector in world coordinates in kN units.
Since:
v0.3

applyForce

void applyForce(Vector force,
                Vector position)
Apply the given force at the given position to this object.

Parameters:
force - Force vector in world coordinates in kN units.
position - Position of applied force relative to the center of mass in world coordinates in length units.
Since:
v0.3

applyForceLocal

void applyForceLocal(Vector force,
                     Vector position)
Apply the given force at the given position to this object where these vectors are expressed in local coordinates.

Parameters:
force - Force vector in local coordinates in kN units.
position - Position of applied force relative to the center of mass in local coordinates in length units.
Since:
v0.3

getMass

double getMass()
Return the mass in kg.

Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02