|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IForceConsumer
Defines methods required by a force consumer for a simulation.
| 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 |
|---|
void applyForce(Vector force)
force - Force vector in world coordinates in kN units.
void applyForce(Vector force,
Vector position)
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.
void applyForceLocal(Vector force,
Vector position)
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.double getMass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |