setWith method
void
setWith({})
Sets the values of the result from the specified arguments.
Implementation
void setWith({
T? hitbox,
Ray2? reflectionRay,
Vector2? normal,
double? distance,
bool isInsideHitbox = false,
}) {
_hitbox = hitbox;
if (reflectionRay != null) {
_reflectionRay.setFrom(reflectionRay);
}
if (normal != null) {
_normal.setFrom(normal);
}
_distance = distance ?? double.maxFinite;
_isInsideHitbox = isInsideHitbox;
}