blob: bbbbc9fc2fbeafa20ec7400398b09e160c2bac12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package tesseract.objects;
import javax.vecmath.Vector3f;
/**
* Objects that can have forces applied to them implement this interface.
*
* @author Jesse Morgan
*/
public interface Forceable extends Physical {
/**
* Apply a new force to this object.
* @param force The force to apply.
*/
void addForce(final Vector3f force);
/**
* @return The inverse mass of the object.
*/
float getInverseMass();
/**
* @return Get the velocity of the object.
*/
Vector3f getVelocity();
}
|