Repository navigation
Expand file tree
/
Copy pathSceneKit.d.ts
More file actions
4030 lines (2219 loc) · 106 KB
/
Copy pathSceneKit.d.ts
File metadata and controls
4030 lines (2219 loc) · 106 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// <reference types="@nativescript/objc-node-api" />
/// <reference path="./Runtime.d.ts" />
/// <reference path="./UIKit.d.ts" />
declare const SCNParticlePropertyPosition: string;
declare const SCNHitTestClipToZRangeKey: string;
declare const SCNGeometrySourceSemanticColor: string;
declare const SCNLightTypeDirectional: string;
declare const SCNConsistencyInvalidURIError: number;
declare const SCNHitTestOptionIgnoreLightArea: string;
declare const SCNLightTypeAmbient: string;
declare const SCNSceneSourceAssetDirectoryURLsKey: string;
declare const SCNConsistencyLineNumberErrorKey: string;
declare const SCNPhysicsTestSearchModeAny: string;
declare const SCNPhysicsTestBackfaceCullingKey: string;
declare const SCNPhysicsShapeTypeConcavePolyhedron: string;
declare const SCNPhysicsShapeTypeConvexHull: string;
declare const SCNPhysicsShapeTypeBoundingBox: string;
declare const SCNPhysicsShapeScaleKey: string;
declare const SCNPhysicsShapeTypeKey: string;
declare const SCNParticlePropertyFriction: string;
declare const SCNParticlePropertyBounce: string;
declare const SCNParticlePropertyOpacity: string;
declare const SCNParticlePropertyColor: string;
declare const SCNParticlePropertyLife: string;
declare const SCNParticlePropertyVelocity: string;
declare const SCNNormalTransform: string;
declare const SCNParticlePropertyRotationAxis: string;
declare const SCNParticlePropertyAngle: string;
declare const SCNGeometrySourceSemanticBoneIndices: string;
declare const SCNGeometrySourceSemanticBoneWeights: string;
declare const SCNGeometrySourceSemanticVertexCrease: string;
declare const SCNGeometrySourceSemanticTangent: string;
declare const SCNLightingModelShadowOnly: string;
declare const SCNLightingModelConstant: string;
declare const SCNLightingModelPhong: string;
declare const SCNLightTypeArea: string;
declare const SCNLightTypeIES: string;
declare const SCNLightTypeSpot: string;
declare const SCNViewTransform: string;
declare const SCNModelTransform: string;
declare const SCNSceneUpAxisAttributeKey: string;
declare const SCNSceneFrameRateAttributeKey: string;
declare const SCNConsistencyMissingAttributeError: number;
declare const SCNConsistencyElementIDErrorKey: string;
declare const SCNSceneSourceAnimationImportPolicyDoNotPlay: string;
declare const SCNSceneSourceLoadingOptionPreserveOriginalTopology: string;
declare const SCNParticlePropertySize: string;
declare const SCNSceneSourceUseSafeModeKey: string;
declare const SCNSceneSourceCheckConsistencyKey: string;
declare const SCNSceneSourceCreateNormalsIfAbsentKey: string;
declare const SCNSceneSourceAssetUnitMeterKey: string;
declare const SCNSceneSourceAssetUnitNameKey: string;
declare const SCNSceneSourceAssetUnitKey: string;
declare const SCNSceneSourceAssetUpAxisKey: string;
declare const SCNSceneSourceAssetCreatedDateKey: string;
declare const SCNSceneSourceAssetContributorsKey: string;
declare const SCNPreferLowPowerDeviceKey: string;
declare const SCNPreferredRenderingAPIKey: string;
declare const SCNShaderModifierEntryPointFragment: string;
declare const SCNShaderModifierEntryPointSurface: string;
declare const SCNProgramMappingChannelKey: string;
declare const SCNHitTestSortResultsKey: string;
declare const SCNHitTestRootNodeKey: string;
declare const SCNHitTestBoundingBoxOnlyKey: string;
declare const SCNSceneSourceFlattenSceneKey: string;
declare const SCNProgramCompilationError: number;
declare const SCNMatrix4Identity: SCNMatrix4;
declare const SCNVector3Zero: SCNVector3;
declare const SCNModelViewTransform: string;
declare const SCNParticlePropertyAngularVelocity: string;
declare const SCNHitTestIgnoreChildNodesKey: string;
declare const SCNSceneSourceStrictConformanceKey: string;
declare const SCNShaderModifierEntryPointLightingModel: string;
declare const SCNLightingModelPhysicallyBased: string;
declare const SCNVector4Zero: SCNVector4;
declare const SCNShaderModifierEntryPointGeometry: string;
declare const SCNLightTypeOmni: string;
declare const SCNGeometrySourceSemanticTexcoord: string;
declare const SCNConsistencyElementTypeErrorKey: string;
declare const SCNLightTypeProbe: string;
declare const SCNPhysicsTestSearchModeAll: string;
declare const SCNSceneExportDestinationURL: string;
declare const SCNErrorDomain: string;
declare const SCNParticlePropertyCharge: string;
declare const SCNPhysicsTestSearchModeClosest: string;
declare const SCNLightingModelBlinn: string;
declare const SCNSceneSourceConvertUnitsToMetersKey: string;
declare const SCNSceneSourceOverrideAssetURLsKey: string;
declare const SCNParticlePropertyFrame: string;
declare const SCNProjectionTransform: string;
declare const SCNLightingModelLambert: string;
declare const SCNHitTestBackFaceCullingKey: string;
declare const SCNConsistencyXMLSchemaValidationError: number;
declare const SCNSceneSourceAnimationImportPolicyPlayRepeatedly: string;
declare const SCNModelViewProjectionTransform: string;
declare const SCNSceneSourceAnimationImportPolicyPlayUsingSceneTimeBase: string;
declare const SCNSceneSourceConvertToYUpKey: string;
declare const SCNSceneSourceAssetAuthorKey: string;
declare const SCNParticlePropertyContactNormal: string;
declare const SCNPhysicsTestCollisionBitMaskKey: string;
declare const SCNConsistencyMissingElementError: number;
declare const SCNSceneStartTimeAttributeKey: string;
declare const SCNHitTestIgnoreHiddenNodesKey: string;
declare const SCNConsistencyInvalidArgumentError: number;
declare const SCNHitTestOptionCategoryBitMask: string;
declare const SCNGeometrySourceSemanticNormal: string;
declare const SCNPhysicsTestSearchModeKey: string;
declare const SCNParticlePropertyFrameRate: string;
declare const SCNDetailedErrorsKey: string;
declare const SCNSceneEndTimeAttributeKey: string;
declare const SCNParticlePropertyContactPoint: string;
declare const SCNGeometrySourceSemanticEdgeCrease: string;
declare const SCNSceneSourceAnimationImportPolicyKey: string;
declare const SCNGeometrySourceSemanticVertex: string;
declare const SCNSceneSourceAssetAuthoringToolKey: string;
declare const SCNPhysicsShapeOptionCollisionMargin: string;
declare const SCNSceneSourceAnimationImportPolicyPlay: string;
declare const SCNSceneSourceAssetModifiedDateKey: string;
declare const SCNPreferredDeviceKey: string;
declare const SCNConsistencyInvalidCountError: number;
declare const SCNHitTestOptionSearchMode: string;
declare const SCNPhysicsShapeKeepAsCompoundKey: string;
declare const SCNHitTestFirstFoundOnlyKey: string;
declare const SCNInteractionMode: {
Fly: 0,
OrbitTurntable: 1,
OrbitAngleMapping: 2,
OrbitCenteredArcball: 3,
OrbitArcball: 4,
Pan: 5,
Truck: 6,
};
declare const SCNReferenceLoadingPolicy: {
Immediate: 0,
OnDemand: 1,
};
declare const SCNPhysicsFieldScope: {
Inside: 0,
Outside: 1,
};
declare const SCNPhysicsBodyType: {
Static: 0,
Dynamic: 1,
Kinematic: 2,
};
declare const SCNParticleEvent: {
Birth: 0,
Death: 1,
Collision: 2,
};
declare const SCNParticleModifierStage: {
PreDynamics: 0,
PostDynamics: 1,
PreCollision: 2,
PostCollision: 3,
};
declare const SCNParticleInputMode: {
Life: 0,
Distance: 1,
OtherProperty: 2,
};
declare const SCNParticleOrientationMode: {
BillboardScreenAligned: 0,
BillboardViewAligned: 1,
Free: 2,
BillboardYAligned: 3,
};
declare const SCNBillboardAxis: {
X: 1,
Y: 2,
Z: 4,
All: 7,
};
declare const SCNChamferMode: {
Both: 0,
Front: 1,
Back: 2,
};
declare const SCNFillMode: {
Fill: 0,
Lines: 1,
};
declare const SCNCameraProjectionDirection: {
Vertical: 0,
Horizontal: 1,
};
declare const SCNLightAreaType: {
Rectangle: 1,
Polygon: 4,
};
declare const SCNLightProbeUpdateType: {
Never: 0,
Realtime: 1,
};
declare const SCNNodeFocusBehavior: {
None: 0,
Occluding: 1,
Focusable: 2,
};
declare const SCNFilterMode: {
None: 0,
Nearest: 1,
Linear: 2,
};
declare const SCNBufferFrequency: {
Frame: 0,
Node: 1,
Shadable: 2,
};
declare const SCNRenderingAPI: {
Metal: 0,
OpenGLES2: 1,
};
declare const SCNAntialiasingMode: {
None: 0,
Multisampling2X: 1,
Multisampling4X: 2,
};
declare const SCNCullMode: {
Back: 0,
Front: 1,
};
declare const SCNDebugOptions: {
None: 0,
ShowPhysicsShapes: 1,
ShowBoundingBoxes: 2,
ShowLightInfluences: 4,
ShowLightExtents: 8,
ShowPhysicsFields: 16,
ShowWireframe: 32,
RenderAsWireframe: 64,
ShowSkeletons: 128,
ShowCreases: 256,
ShowConstraints: 512,
ShowCameras: 1024,
};
declare const SCNParticleSortingMode: {
None: 0,
ProjectedDepth: 1,
Distance: 2,
OldestFirst: 3,
YoungestFirst: 4,
};
declare const SCNTessellationSmoothingMode: {
None: 0,
PNTriangles: 1,
Phong: 2,
};
declare const SCNWrapMode: {
Clamp: 1,
Repeat: 2,
ClampToBorder: 3,
Mirror: 4,
};
declare const SCNShadowMode: {
Forward: 0,
Deferred: 1,
Modulated: 2,
};
declare const SCNParticleImageSequenceAnimationMode: {
Repeat: 0,
Clamp: 1,
AutoReverse: 2,
};
declare const SCNMorpherCalculationMode: {
Normalized: 0,
Additive: 1,
};
declare const SCNMovabilityHint: {
Fixed: 0,
Movable: 1,
};
declare const SCNLightProbeType: {
Irradiance: 0,
Radiance: 1,
};
declare const SCNParticleBirthLocation: {
Surface: 0,
Volume: 1,
Vertex: 2,
};
declare const SCNHitTestSearchMode: {
Closest: 0,
All: 1,
Any: 2,
};
declare const SCNParticleBlendMode: {
Additive: 0,
Subtract: 1,
Multiply: 2,
Screen: 3,
Alpha: 4,
Replace: 5,
};
declare const SCNBlendMode: {
Alpha: 0,
Add: 1,
Subtract: 2,
Multiply: 3,
Screen: 4,
Replace: 5,
Max: 6,
};
declare const SCNTransparencyMode: {
AOne: 0,
RGBZero: 1,
SingleLayer: 2,
DualLayer: 3,
Default: 0,
};
declare const SCNParticleBirthDirection: {
Constant: 0,
SurfaceNormal: 1,
Random: 2,
};
declare const SCNColorMask: {
None: 0,
Red: 8,
Green: 4,
Blue: 2,
Alpha: 1,
All: 15,
};
declare const SCNGeometryPrimitiveType: {
Triangles: 0,
TriangleStrip: 1,
Line: 2,
Point: 3,
Polygon: 4,
};
declare const SCNSceneSourceStatus: {
Error: -1,
Parsing: 4,
Validating: 8,
Processing: 12,
Complete: 16,
};
declare const SCNPhysicsCollisionCategory: {
Default: 1,
Static: 2,
All: -1,
};
declare const SCNActionTimingMode: {
Linear: 0,
EaseIn: 1,
EaseOut: 2,
EaseInEaseOut: 3,
};
declare class SCNMatrix4 {
constructor(init?: SCNMatrix4);
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
}
declare class SCNVector3 {
constructor(init?: SCNVector3);
x: number;
y: number;
z: number;
}
declare class SCNVector4 {
constructor(init?: SCNVector4);
x: number;
y: number;
z: number;
w: number;
}
declare function SCNVector3EqualToVector3(a: SCNVector3, b: SCNVector3): boolean;
declare function SCNVector4EqualToVector4(a: SCNVector4, b: SCNVector4): boolean;
declare function SCNMatrix4IsIdentity(m: SCNMatrix4): boolean;
declare function SCNMatrix4EqualToMatrix4(a: SCNMatrix4, b: SCNMatrix4): boolean;
declare function SCNMatrix4MakeRotation(angle: number, x: number, y: number, z: number): SCNMatrix4;
declare function SCNMatrix4Scale(m: SCNMatrix4, sx: number, sy: number, sz: number): SCNMatrix4;
declare function SCNMatrix4Rotate(m: SCNMatrix4, angle: number, x: number, y: number, z: number): SCNMatrix4;
declare function SCNMatrix4Invert(m: SCNMatrix4): SCNMatrix4;
declare function SCNMatrix4Mult(a: SCNMatrix4, b: SCNMatrix4): SCNMatrix4;
declare function SCNMatrix4ToGLKMatrix4(mat: SCNMatrix4): _GLKMatrix4;
declare function SCNMatrix4FromGLKMatrix4(mat: _GLKMatrix4): SCNMatrix4;
declare function SCNExportJavaScriptModule(context: JSContext): void;
declare interface SCNAnimationProtocol extends NSObjectProtocol {
}
declare class SCNAnimationProtocol extends NativeObject implements SCNAnimationProtocol {
}
declare interface SCNPhysicsContactDelegate extends NSObjectProtocol {
physicsWorldDidBeginContact?(world: SCNPhysicsWorld, contact: SCNPhysicsContact): void;
physicsWorldDidUpdateContact?(world: SCNPhysicsWorld, contact: SCNPhysicsContact): void;
physicsWorldDidEndContact?(world: SCNPhysicsWorld, contact: SCNPhysicsContact): void;
}
declare class SCNPhysicsContactDelegate extends NativeObject implements SCNPhysicsContactDelegate {
}
declare interface SCNProgramDelegate extends NSObjectProtocol {
programHandleError?(program: SCNProgram, error: NSError): void;
}
declare class SCNProgramDelegate extends NativeObject implements SCNProgramDelegate {
}
declare interface SCNTechniqueSupport extends NSObjectProtocol {
technique: SCNTechnique;
}
declare class SCNTechniqueSupport extends NativeObject implements SCNTechniqueSupport {
}
declare interface SCNShadable extends NSObjectProtocol {
program?: SCNProgram;
handleBindingOfSymbolUsingBlock?(symbol: string, block: (p1: number, p2: number, p3: SCNNode, p4: SCNRenderer) => void | null): void;
handleUnbindingOfSymbolUsingBlock?(symbol: string, block: (p1: number, p2: number, p3: SCNNode, p4: SCNRenderer) => void | null): void;
get shaderModifiers(): NSDictionary | undefined;
set shaderModifiers(value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object> | undefined);
minimumLanguageVersion?: NSNumber;
}
declare class SCNShadable extends NativeObject implements SCNShadable {
}
declare interface SCNBufferStream extends NSObjectProtocol {
writeBytesLength(bytes: interop.PointerConvertible, length: number): void;
}
declare class SCNBufferStream extends NativeObject implements SCNBufferStream {
}
declare interface SCNSceneRenderer extends NSObjectProtocol {
scene: SCNScene;
presentSceneWithTransitionIncomingPointOfViewCompletionHandler(scene: SCNScene, transition: SKTransition, pointOfView: SCNNode | null, completionHandler: () => void | null): void;
sceneTime: number;
delegate: SCNSceneRendererDelegate;
hitTestOptions(point: CGPoint, options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object> | null): NSArray;
isNodeInsideFrustumWithPointOfView(node: SCNNode, pointOfView: SCNNode): boolean;
nodesInsideFrustumWithPointOfView(pointOfView: SCNNode): NSArray;
projectPoint(point: SCNVector3): SCNVector3;
unprojectPoint(point: SCNVector3): SCNVector3;
isPlaying: boolean;
loops: boolean;
pointOfView: SCNNode;
autoenablesDefaultLighting: boolean;
isJitteringEnabled: boolean;
isTemporalAntialiasingEnabled: boolean;
prepareObjectShouldAbortBlock(object: interop.Object, block: () => boolean | null): boolean;
prepareObjectsWithCompletionHandler(objects: NSArray<interop.Object> | Array<interop.Object>, completionHandler: (p1: boolean) => void | null): void;
showsStatistics: boolean;
debugOptions: interop.Enum<typeof SCNDebugOptions>;
overlaySKScene: SKScene;
readonly renderingAPI: interop.Enum<typeof SCNRenderingAPI>;
readonly workingColorSpace: interop.Pointer;
readonly context: interop.Pointer;
readonly currentRenderCommandEncoder: MTLRenderCommandEncoder;
readonly currentRenderPassDescriptor: MTLRenderPassDescriptor;
readonly device: MTLDevice;
readonly colorPixelFormat: interop.Enum<typeof MTLPixelFormat>;
readonly depthPixelFormat: interop.Enum<typeof MTLPixelFormat>;
readonly stencilPixelFormat: interop.Enum<typeof MTLPixelFormat>;
readonly commandQueue: MTLCommandQueue;
readonly audioEngine: AVAudioEngine;
readonly audioEnvironmentNode: AVAudioEnvironmentNode;
audioListener: SCNNode;
readonly currentViewport: CGRect;
usesReverseZ: boolean;
}
declare class SCNSceneRenderer extends NativeObject implements SCNSceneRenderer {
}
declare interface SCNBoundingVolume extends NSObjectProtocol {
getBoundingBoxMinMax(min: interop.PointerConvertible, max: interop.PointerConvertible): boolean;
setBoundingBoxMinMax(min: interop.PointerConvertible, max: interop.PointerConvertible): void;
getBoundingSphereCenterRadius(center: interop.PointerConvertible, radius: interop.PointerConvertible): boolean;
}
declare class SCNBoundingVolume extends NativeObject implements SCNBoundingVolume {
}
declare interface SCNSceneExportDelegate extends NSObjectProtocol {
writeImageWithSceneDocumentURLOriginalImageURL?(image: UIImage, documentURL: NSURL, originalImageURL: NSURL | null): NSURL;
}
declare class SCNSceneExportDelegate extends NativeObject implements SCNSceneExportDelegate {
}
declare interface SCNAnimatable extends NSObjectProtocol {
addAnimationForKey(animation: SCNAnimation, key: string | null): void;
addAnimationPlayerForKey(player: SCNAnimationPlayer, key: string | null): void;
removeAllAnimations(): void;
removeAllAnimationsWithBlendOutDuration(duration: number): void;
removeAnimationForKey(key: string): void;
removeAnimationForKeyBlendOutDuration(key: string, duration: number): void;
readonly animationKeys: NSArray;
animationPlayerForKey(key: string): SCNAnimationPlayer;
removeAnimationForKeyFadeOutDuration(key: string, duration: number): void;
animationForKey(key: string): CAAnimation;
pauseAnimationForKey(key: string): void;
resumeAnimationForKey(key: string): void;
setSpeedForAnimationKey(speed: number, key: string): void;
isAnimationForKeyPaused(key: string): boolean;
}
declare class SCNAnimatable extends NativeObject implements SCNAnimatable {
}
declare interface SCNNodeRendererDelegate extends NSObjectProtocol {
renderNodeRendererArguments?(node: SCNNode, renderer: SCNRenderer, arguments$: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>): void;
}
declare class SCNNodeRendererDelegate extends NativeObject implements SCNNodeRendererDelegate {
}
declare interface SCNCameraControllerDelegate extends NSObjectProtocol {
cameraInertiaWillStartForController?(cameraController: SCNCameraController): void;
cameraInertiaDidEndForController?(cameraController: SCNCameraController): void;
}
declare class SCNCameraControllerDelegate extends NativeObject implements SCNCameraControllerDelegate {
}
declare interface SCNSceneRendererDelegate extends NSObjectProtocol {
rendererUpdateAtTime?(renderer: SCNSceneRenderer, time: number): void;
rendererDidApplyAnimationsAtTime?(renderer: SCNSceneRenderer, time: number): void;
rendererDidSimulatePhysicsAtTime?(renderer: SCNSceneRenderer, time: number): void;
rendererDidApplyConstraintsAtTime?(renderer: SCNSceneRenderer, time: number): void;
rendererWillRenderSceneAtTime?(renderer: SCNSceneRenderer, scene: SCNScene, time: number): void;
rendererDidRenderSceneAtTime?(renderer: SCNSceneRenderer, scene: SCNScene, time: number): void;
}
declare class SCNSceneRendererDelegate extends NativeObject implements SCNSceneRendererDelegate {
}
declare interface SCNActionable extends NSObjectProtocol {
runAction(action: SCNAction): void;
runActionCompletionHandler(action: SCNAction, block: () => void | null): void;
runActionForKey(action: SCNAction, key: string | null): void;
runActionForKeyCompletionHandler(action: SCNAction, key: string | null, block: () => void | null): void;
readonly hasActions: boolean;
actionForKey(key: string): SCNAction;
removeActionForKey(key: string): void;
removeAllActions(): void;
readonly actionKeys: NSArray;
}
declare class SCNActionable extends NativeObject implements SCNActionable {
}
declare interface SCNAvoidOccluderConstraintDelegate extends NSObjectProtocol {
avoidOccluderConstraintShouldAvoidOccluderForNode?(constraint: SCNAvoidOccluderConstraint, occluder: SCNNode, node: SCNNode): boolean;
avoidOccluderConstraintDidAvoidOccluderForNode?(constraint: SCNAvoidOccluderConstraint, occluder: SCNNode, node: SCNNode): void;
}
declare class SCNAvoidOccluderConstraintDelegate extends NativeObject implements SCNAvoidOccluderConstraintDelegate {
}
declare interface SCNCameraControlConfiguration extends NSObjectProtocol {
autoSwitchToFreeCamera: boolean;
allowsTranslation: boolean;
flyModeVelocity: number;
panSensitivity: number;
truckSensitivity: number;
rotationSensitivity: number;
}
declare class SCNCameraControlConfiguration extends NativeObject implements SCNCameraControlConfiguration {
}
declare class SCNPhysicsSliderJoint extends SCNPhysicsBehavior {
static jointWithBodyAAxisAAnchorABodyBAxisBAnchorB<This extends abstract new (...args: any) => any>(this: This, bodyA: SCNPhysicsBody, axisA: SCNVector3, anchorA: SCNVector3, bodyB: SCNPhysicsBody, axisB: SCNVector3, anchorB: SCNVector3): InstanceType<This>;
static jointWithBodyAxisAnchor<This extends abstract new (...args: any) => any>(this: This, body: SCNPhysicsBody, axis: SCNVector3, anchor: SCNVector3): InstanceType<This>;
readonly bodyA: SCNPhysicsBody;
axisA: SCNVector3;
anchorA: SCNVector3;
readonly bodyB: SCNPhysicsBody;
axisB: SCNVector3;
anchorB: SCNVector3;
minimumLinearLimit: number;
maximumLinearLimit: number;
minimumAngularLimit: number;
maximumAngularLimit: number;
motorTargetLinearVelocity: number;
motorMaximumForce: number;
motorTargetAngularVelocity: number;
motorMaximumTorque: number;
}
declare class SCNPhysicsBallSocketJoint extends SCNPhysicsBehavior {
static jointWithBodyAAnchorABodyBAnchorB<This extends abstract new (...args: any) => any>(this: This, bodyA: SCNPhysicsBody, anchorA: SCNVector3, bodyB: SCNPhysicsBody, anchorB: SCNVector3): InstanceType<This>;
static jointWithBodyAnchor<This extends abstract new (...args: any) => any>(this: This, body: SCNPhysicsBody, anchor: SCNVector3): InstanceType<This>;
readonly bodyA: SCNPhysicsBody;
anchorA: SCNVector3;
readonly bodyB: SCNPhysicsBody;
anchorB: SCNVector3;
}
declare class SCNPhysicsHingeJoint extends SCNPhysicsBehavior {
static jointWithBodyAAxisAAnchorABodyBAxisBAnchorB<This extends abstract new (...args: any) => any>(this: This, bodyA: SCNPhysicsBody, axisA: SCNVector3, anchorA: SCNVector3, bodyB: SCNPhysicsBody, axisB: SCNVector3, anchorB: SCNVector3): InstanceType<This>;
static jointWithBodyAxisAnchor<This extends abstract new (...args: any) => any>(this: This, body: SCNPhysicsBody, axis: SCNVector3, anchor: SCNVector3): InstanceType<This>;
readonly bodyA: SCNPhysicsBody;
axisA: SCNVector3;
anchorA: SCNVector3;
readonly bodyB: SCNPhysicsBody;
axisB: SCNVector3;
anchorB: SCNVector3;
}
declare class SCNPhysicsBehavior extends NSObject implements NSSecureCoding {
static readonly supportsSecureCoding: boolean;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare class SCNPhysicsWorld extends NSObject implements NSSecureCoding {
gravity: SCNVector3;
speed: number;
timeStep: number;
contactDelegate: SCNPhysicsContactDelegate;
addBehavior(behavior: SCNPhysicsBehavior): void;
removeBehavior(behavior: SCNPhysicsBehavior): void;
removeAllBehaviors(): void;
readonly allBehaviors: NSArray;
rayTestWithSegmentFromPointToPointOptions(origin: SCNVector3, dest: SCNVector3, options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object> | null): NSArray;
contactTestBetweenBodyAndBodyOptions(bodyA: SCNPhysicsBody, bodyB: SCNPhysicsBody, options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object> | null): NSArray;
contactTestWithBodyOptions(body: SCNPhysicsBody, options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object> | null): NSArray;
convexSweepTestWithShapeFromTransformToTransformOptions(shape: SCNPhysicsShape, from: SCNMatrix4, to: SCNMatrix4, options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object> | null): NSArray;
updateCollisionPairs(): void;
static readonly supportsSecureCoding: boolean;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare class SCNPhysicsShape extends NSObject implements NSCopying, NSSecureCoding {
static shapeWithGeometryOptions<This extends abstract new (...args: any) => any>(this: This, geometry: SCNGeometry, options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object> | null): InstanceType<This>;
static shapeWithNodeOptions<This extends abstract new (...args: any) => any>(this: This, node: SCNNode, options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object> | null): InstanceType<This>;
static shapeWithShapesTransforms<This extends abstract new (...args: any) => any>(this: This, shapes: NSArray<interop.Object> | Array<interop.Object>, transforms: NSArray<interop.Object> | Array<interop.Object> | null): InstanceType<This>;
readonly options: NSDictionary;
readonly sourceObject: interop.Object;
readonly transforms: NSArray;
copyWithZone(zone: interop.PointerConvertible): interop.Object;
static readonly supportsSecureCoding: boolean;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare class SCNPhysicsField extends NSObject implements NSCopying, NSSecureCoding {
strength: number;
falloffExponent: number;
minimumDistance: number;
isActive: boolean;
isExclusive: boolean;
halfExtent: SCNVector3;
usesEllipsoidalExtent: boolean;
scope: interop.Enum<typeof SCNPhysicsFieldScope>;
offset: SCNVector3;
direction: SCNVector3;
categoryBitMask: number;
static dragField(): SCNPhysicsField;
static vortexField(): SCNPhysicsField;
static radialGravityField(): SCNPhysicsField;
static linearGravityField(): SCNPhysicsField;
static noiseFieldWithSmoothnessAnimationSpeed(smoothness: number, speed: number): SCNPhysicsField;
static turbulenceFieldWithSmoothnessAnimationSpeed(smoothness: number, speed: number): SCNPhysicsField;
static springField(): SCNPhysicsField;
static electricField(): SCNPhysicsField;
static magneticField(): SCNPhysicsField;