net.phys2d.raw.forcesource
Interface ForceSource

All Known Implementing Classes:
WindSource

public interface ForceSource

A source of force that can potentially be applied to every body every frame


Method Summary
 void apply(Body body, float dt)
          Apply the force of this source to the given body
 

Method Detail

apply

public void apply(Body body,
                  float dt)
Apply the force of this source to the given body

Parameters:
body - The body to which the force should be applied
dt - The change in time since last update - in most cases constant