Newer
Older
SproutServerMicro / src / main / java / framework / gameMain / ModeOnGround.java
s-bekki on 30 Nov 2017 459 bytes initial commit
  1. package framework.gameMain;
  2.  
  3. import framework.physics.Force3D;
  4. import framework.physics.PhysicsUtility;
  5. import framework.physics.Solid3D;
  6.  
  7. import javax.vecmath.Vector3d;
  8.  
  9.  
  10. public class ModeOnGround extends Mode {
  11. private Vector3d normal = PhysicsUtility.vertical;
  12. public Force3D getForce(Solid3D body) {
  13. return Force3D.ZERO;
  14. }
  15.  
  16. public void setNormal(Vector3d normal) {
  17. this.normal = normal;
  18. }
  19.  
  20. public Vector3d getNormal() {
  21. return normal;
  22. }
  23. }