Fixed bug in capsule raycast