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 |
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 applieddt
- The change in time since last update - in most cases constant