Exemple #1
0
 public void BuildJobHandle(NativeArray <IsOccludedByObstacleJobData> IsOccludedByObstacleJobData,
                            NativeArray <Vector3> VisibilityProbeLocalPoints, RangeObstacleOcclusionIntersection RangeObstacleOcclusionIntersection)
 {
     this.JobHandle = new SphereIntersectionJob
     {
         SphereIntersectionJobDatas  = this.SphereIntersectionJobData,
         IsOccludedByObstacleJobData = IsOccludedByObstacleJobData,
         AssociatedObstacleFrustumPointsPositions = RangeObstacleOcclusionIntersection.AssociatedObstacleFrustumPointsPositions,
         IntersectionResult = this.SphereIntersectionJobResult
     }.Schedule(totalSphereTypeIntersection, 5);
 }
Exemple #2
0
 public void BuildJobHandle(NativeArray <IsOccludedByObstacleJobData> IsOccludedByObstacleJobData, RangeObstacleOcclusionIntersection RangeObstacleOcclusionIntersection)
 {
     this.JobHandle = new RoundedFrustumIntersectionJob
     {
         RoundedFrustumIntersectionJobData        = this.RoundedFrustumIntersectionJobData,
         IsOccludedByObstacleJobData              = IsOccludedByObstacleJobData,
         AssociatedObstacleFrustumPointsPositions = RangeObstacleOcclusionIntersection.AssociatedObstacleFrustumPointsPositions,
         IntersectionResult = this.RoundedFrustumIntersectionJobResult
     }.Schedule(this.totalRoundedFrustumTypeIntersection, 5);
 }