protected AABB aABB; //the axis aligned bounding box of the shape (recalculated every frame) public void SetConnectedPhysicsObject(PhysicsObject newConnected) { connected = newConnected; }
public Hit(float distanceAlongRay, PhysicsObject colliderHit) { this.distanceAlongRay = distanceAlongRay; objectHit = colliderHit; }