Packageorg.generalrelativity.foam.dynamics.force
Classpublic class SimpleForceGenerator
ImplementsIForceGenerator
SubclassesFriction, Gravity, MouseSpring, Spring



Protected Properties
 PropertyDefined by
  _force : Vector
force to apply to element(s)
SimpleForceGenerator
Public Methods
 MethodDefined by
  
Creates a new generic force generator
SimpleForceGenerator
  
generate(element:ISimulatable):void
Generates a force for the given element
SimpleForceGenerator
Property detail
_forceproperty
protected var _force:Vector

force to apply to element(s)

Constructor detail
SimpleForceGenerator()constructor
public function SimpleForceGenerator(force:Vector = null)

Creates a new generic force generator

Parameters
force:Vector (default = null) — force to apply to elements
Method detail
generate()method
public function generate(element:ISimulatable):void

Generates a force for the given element

Parameters
element:ISimulatable — element to apply a force to