TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ AimingLaserScan()

static void Terraria.Collision.AimingLaserScan ( Vector2 startPoint,
Vector2 endPoint,
float samplingWidth,
int samplesToTake,
out Vector2 vectorTowardsTarget,
out float[] samples )
inlinestatic

Definition at line 5046 of file Collision.cs.

5047 {
5048 //IL_000b: Unknown result type (might be due to invalid IL or missing references)
5049 //IL_000c: Unknown result type (might be due to invalid IL or missing references)
5050 //IL_000d: Unknown result type (might be due to invalid IL or missing references)
5051 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
5052 //IL_0017: Unknown result type (might be due to invalid IL or missing references)
5053 //IL_001a: Unknown result type (might be due to invalid IL or missing references)
5054 //IL_001f: Unknown result type (might be due to invalid IL or missing references)
5055 //IL_0024: Unknown result type (might be due to invalid IL or missing references)
5056 samples = new float[samplesToTake];
5058 LaserScan(startPoint, vectorTowardsTarget.SafeNormalize(Vector2.Zero), samplingWidth, ((Vector2)(ref vectorTowardsTarget)).Length(), samples);
5059 }
static void LaserScan(Vector2 samplingPoint, Vector2 directionUnit, float samplingWidth, float maxDistance, float[] samples)

References Terraria.Collision.LaserScan().

Referenced by Terraria.Player.CommandForbiddenStorm(), and Terraria.Player.FindSharpTearsSpot().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: