Пример #1
0
 public void ReadFromStream(Unity.SnapshotDebugger.Buffer buffer)
 {
     startTransform = buffer.ReadAffineTransform();
     controlPoints  = buffer.ReadNativeArray <float3>(out allocator);
     navParams      = buffer.ReadBlittable <NavigationParams>();
     pathSpline.ReadFromStream(buffer);
     nextControlPoint = buffer.Read32();
     isBuilt          = buffer.ReadBlittable <BlittableBool>();
     outputTrajectory = buffer.ReadBlittable <DebugIdentifier>();
 }
 internal static DeltaSamplingTime Create(SamplingTime samplingTime, AffineTransform deltaTransform, BlittableBool crossedBoundary)
 {
     return(new DeltaSamplingTime
     {
         crossedBoundary = crossedBoundary,
         samplingTime = samplingTime,
         deltaTransform = deltaTransform
     });
 }
Пример #3
0
 public void Build()
 {
     pathSpline.BuildSpline(startTransform.t, startTransform.Forward, controlPoints, float3.zero, navParams.pathCurvature);
     isBuilt = true;
 }