| Package | org.generalrelativity.foam.dynamics.force |
| Class | public class SimpleForceGenerator |
| Implements | IForceGenerator |
| Subclasses | Friction, Gravity, MouseSpring, Spring |
| Property | Defined by | ||
|---|---|---|---|
| _force : Vector
force to apply to element(s)
| SimpleForceGenerator | ||
| Method | Defined by | ||
|---|---|---|---|
|
SimpleForceGenerator(force:Vector = null)
Creates a new generic force generator
| SimpleForceGenerator | ||
|
generate(element:ISimulatable):void
Generates a force for the given element
| SimpleForceGenerator | ||
| _force | property |
protected var _force:Vectorforce to apply to element(s)
| SimpleForceGenerator | () | constructor |
public function SimpleForceGenerator(force:Vector = null)Creates a new generic force generator
Parametersforce:Vector (default = null) — force to apply to elements
|
| generate | () | method |
public function generate(element:ISimulatable):voidGenerates a force for the given element
Parameterselement:ISimulatable — element to apply a force to
|