|
|
@ -36,17 +36,7 @@ public function AcediaObject Get() { return none; } |
|
|
|
* currently at. Origin vector (with all coordinates set to `0.0`) if |
|
|
|
* currently at. Origin vector (with all coordinates set to `0.0`) if |
|
|
|
* iteration has already finished. |
|
|
|
* iteration has already finished. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function Vector GetHitLocation() |
|
|
|
public function Vector GetHitLocation(); |
|
|
|
{ |
|
|
|
|
|
|
|
if (!initialized) { |
|
|
|
|
|
|
|
return Vect(0.0f, 0.0f, 0.0f); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
TryTracing(); |
|
|
|
|
|
|
|
if (HasFinished()) { |
|
|
|
|
|
|
|
return Vect(0.0f, 0.0f, 0.0f); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return hitLocations[currentIndex]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns hit normal for the `EPlaceable` that `TracingIterator` is |
|
|
|
* Returns hit normal for the `EPlaceable` that `TracingIterator` is |
|
|
@ -56,17 +46,7 @@ public function Vector GetHitLocation() |
|
|
|
* currently at. Origin vector (with all coordinates set to `0.0`) if |
|
|
|
* currently at. Origin vector (with all coordinates set to `0.0`) if |
|
|
|
* iteration has already finished. |
|
|
|
* iteration has already finished. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function Vector GetHitNormal() |
|
|
|
public function Vector GetHitNormal(); |
|
|
|
{ |
|
|
|
|
|
|
|
if (!initialized) { |
|
|
|
|
|
|
|
return Vect(0.0f, 0.0f, 0.0f); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
TryTracing(); |
|
|
|
|
|
|
|
if (HasFinished()) { |
|
|
|
|
|
|
|
return Vect(0.0f, 0.0f, 0.0f); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return hitNormals[currentIndex]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns `EPlaceable` caller `TracingIterator` is currently at. |
|
|
|
* Returns `EPlaceable` caller `TracingIterator` is currently at. |
|
|
@ -77,11 +57,7 @@ public function Vector GetHitNormal() |
|
|
|
* |
|
|
|
* |
|
|
|
* @return `EPlaceable` caller `TracingIterator` is currently at. |
|
|
|
* @return `EPlaceable` caller `TracingIterator` is currently at. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function EPlaceable GetPlaceable() |
|
|
|
public function EPlaceable GetPlaceable(); |
|
|
|
{ |
|
|
|
|
|
|
|
// We only create `EPlaceable` child classes in this class |
|
|
|
|
|
|
|
return EPlaceable(Get()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns `EPlaceable` caller `TracingIterator` is currently at as `EPawn`, |
|
|
|
* Returns `EPlaceable` caller `TracingIterator` is currently at as `EPawn`, |
|
|
|