Renderer/src/main/java/electrosphere/entity/state/collidable/Impulse.java
2022-03-30 22:55:29 -04:00

48 lines
921 B
Java

package electrosphere.entity.state.collidable;
import org.joml.Vector3d;
import org.joml.Vector3f;
/**
*
* @author amaterasu
*/
public class Impulse {
Vector3d direction;
Vector3d collisionPoint;
Vector3d worldPoint;
double force;
String type;
public Impulse(Vector3d forceDir, Vector3d collisionPoint, Vector3d worldPoint, double force, String type){
this.force = force;
this.direction = forceDir;
this.collisionPoint = collisionPoint;
this.type = type;
this.worldPoint = worldPoint;
}
public Vector3d getDirection() {
return direction;
}
public double getForce() {
return force;
}
public String getType() {
return type;
}
public Vector3d getCollisionPoint() {
return collisionPoint;
}
public Vector3d getWorldPoint(){
return worldPoint;
}
}