| Package | org.MARS.dynamics.force |
| Interface | public interface IForceGenerator |
| Implementors | Friction, Gravity, KeyDrivenTorqueGenerator, MouseSpring, SimpleForceGenerator, Spring |
The idea behind a force generator is that it becomes part of the element. By adding a force generator to an element, it can be present to apply its force from within the element's integration.
This generic structure allows IForceGenerators to affect multiple particles.
See also
| Method | Defined by | ||
|---|---|---|---|
|
generate(element:ISimulatable):void
Generates a force (presumably) for the given element
| IForceGenerator | ||
| generate | () | method |
public function generate(element:ISimulatable):voidGenerates a force (presumably) for the given element
Parameterselement:ISimulatable — element to apply a force to
|