public abstract class UniversalForce extends AbstractForce
Force
that is applied to Particle
s at the user's discretion, and hence
does not support the Force.apply()
method. Users wishing to create custom Forces
of this kind should extend this class, implementing the Force.apply(Particle)
method only.
Examples of this kind of Force are the Gravity
and Drag
classes.Constructor and Description |
---|
UniversalForce() |
Modifier and Type | Method and Description |
---|---|
AbstractForce |
apply()
|
isOff, isOn, turnOff, turnOn, turnOn
public AbstractForce apply() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- this Force is guaranteed to throw this exception