Packageorg.MARS.dynamics.force
Interfacepublic interface IForceGenerator
ImplementorsFriction, Gravity, KeyDrivenTorqueGenerator, MouseSpring, SimpleForceGenerator, Spring

Depicts how forces should modularly affect simulatable elements.

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

ISimulatable.addForceGenerator
SimpleForceGenerator


Public Methods
 MethodDefined by
  
generate(element:ISimulatable):void
Generates a force (presumably) for the given element
IForceGenerator
Method detail
generate()method
public function generate(element:ISimulatable):void

Generates a force (presumably) for the given element

Parameters
element:ISimulatable — element to apply a force to