setFrom method

void setFrom(
  1. RaycastResult<T> other
)

Sets this RaycastResult's objects to the values stored in other.

Implementation

void setFrom(RaycastResult<T> other) {
  setWith(
    hitbox: other.hitbox,
    reflectionRay: other.reflectionRay,
    normal: other.normal,
    distance: other.distance,
    isInsideHitbox: other.isInsideHitbox,
  );
}