Questions tagged [scntranscaction]

7 questions
5
votes
2 answers

Multiple serial animations in SceneKit

I want to be able to run multiple animations, one after another, in SceneKit. I've implemented a function which runs one animation like so: fileprivate func animateMove(_ move: Move) { print("Animate move started " + move.identifier) // I…
5
votes
2 answers

Swift 3: Cannot call value of non-function type '(() -> Void)?'

This function worked before the curse of all curses, also known as Swift 3. After migrating to Swift 3, Xcode, my friendly and cuddly IDE, displays this frustrating error against the line SCNTransaction.completionBlock: Cannot call value of…
Crashalot
  • 33,605
  • 61
  • 269
  • 439
1
vote
1 answer

How to animate SCNNode.scale using SCNTransaction

let balloon: SCNNode SCNTransaction.begin() SCNTransaction.animationDuration = 4 SCNTransaction.animationTimingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.linear) balloon.scale.x = 2.28 balloon.scale.y = 2.28 balloon.scale.z =…
oxygen
  • 5,891
  • 6
  • 37
  • 69
1
vote
1 answer

How to pass non-texture data to SCNTechnique Metal shaders

I can a pass custom parameter of type sampler2D to the Metal fragment function of an SCNTechnique and I have a working 2nd pass: PList: inputs imageFromPass1 COLOR myCustomImage
diviaki
  • 428
  • 2
  • 15
0
votes
1 answer

How to fetch correct values from SCNTransaction over its runtime?

I was trying to fetch values from a certain SceneKit object that is modified by a SCNTransaction like so: (focalLength is initially 50) SCNTransaction.begin() SCNTransaction.animationDuration = 5.0 cameraNode.camera?.focalLength =…
ZAY
  • 3,882
  • 2
  • 13
  • 21
0
votes
2 answers

Why does the Java8 Stream GroupingBy return empty

@Transactional(isolation = Isolation.READ_UNCOMMITTED , propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public void insertPhoneAndArea(List recordEntityList) { int tryCount = 0; …
Allen
  • 88
  • 6
0
votes
1 answer

How to terminate a SCNTransaction ongoing?

I use SCNTransaction to move game objects. More specifically, when the player taps somewhere on the screen, the object will move towards that destination. But sometimes the player may make a wrong move, so I want to create a button which can…
Kelin Sasha
  • 167
  • 1
  • 7