public static JobHandle RandomPointsInCube(LVector3 center, LFloat radius, Lockstep.UnsafeECS.NativeArray <LVector3> points, JobHandle inputDeps) { var pointsInSphereJob = new PointsInCube { Radius = radius, Center = center, Points = points }; var pointsInSphereJobHandle = pointsInSphereJob.Schedule(inputDeps); return(pointsInSphereJobHandle); }
public static void RandomPointsInUnitCube(Lockstep.UnsafeECS.NativeArray <LVector3> points) { var randomPointsInSphereJobHandle = RandomPointsInSphere(LVector3.zero, LFloat.one, points, new JobHandle()); randomPointsInSphereJobHandle.Complete(); }
public static void RandomPointsInCube(LVector3 center, LFloat radius, Lockstep.UnsafeECS.NativeArray <LVector3> points) { var randomPointsInSphereJobHandle = RandomPointsInSphere(center, radius, points, new JobHandle()); randomPointsInSphereJobHandle.Complete(); }