package com.GameName.Physics.Dispatch;

import com.GameName.Util.Vectors.Vector3f;

public class IntersectionResult {
	private boolean isColliding;
	private Vector3f direction;
	
	public IntersectionResult(boolean isColliding, Vector3f direction) {
		this.isColliding = isColliding;
		this.direction = direction;
	}
	
	public boolean isColliding() {
		return isColliding;
	}
	
	public float getDistance() {
		return direction.length();
	}
	
	public Vector3f getDirection() {
		return direction;
	}
}
