Questions tagged [scnaction]
9 questions
4
votes
2 answers
SceneKit – What's the difference between SCNAction and CABasicAnimation?
I'm still very new to SceneKit and SpriteKit and just started working on animating some SCNNodes.
One thing I don't get is when to use SCNAction and when to use CABasicAnimation. Is there any performance difference between SCNAction and…

user4722440
- 41
- 2
3
votes
1 answer
Swift/IOS: SCNNode appeared to return to its original position after SCNAction is finished, but its actual position was changed by SCNAction
I am very new to Swift and IOS development so this could be a simple question, but I struggle to find the answer on the internet.
I was trying to animate a static DAE model by running a SCNAction on one of its nodes. However, after the SCNAction was…

ShaunTheSheep
- 33
- 2
2
votes
1 answer
Perform SCNAction using a button (SwiftUI)
With UIKit I have created a SceneView with an object, that can perform SCNActions when a button has been pressed:
import UIKit
import SceneKit
class ViewController: UIViewController {
@IBOutlet weak var ScenekitView: SCNView!
…

Marco703
- 27
- 4
0
votes
0 answers
Why do I use CABasicanimate and SCNAction in scenekit to add the same animation, but with different results
I use CABasicanimation and SCNAction in scenekit to add the same animation, but with different results
enter image description here
I am now using CABasicanimation and SCNAction to add an animation of rotating an M_PI around the axis to the node…

niro sha
- 1
0
votes
1 answer
How to run .fadeOut for mesh of the building without walls becoming semi-transparent during the animation? (SceneKit)
I use the SceneKit library (Swift, iOS) to show the mesh (.obj file) of a building in my iPhone app.
Mesh is, in fact, a 3D model of the entire building. Mesh is one big monolith file. So consider the mesh file contains all elements (walls, floor,…

Ihor Kram
- 41
- 5
0
votes
1 answer
SceneKit skeleton 3D animation
i am implementing an app for iPhone6S that helps disabled people to gain back their limbs control by training using a virtual trainer.
This virtual trainer performs simple movements such as raising and lowering an arm, raising and lowering a leg,…

Luca Toldo
- 1
- 3
0
votes
1 answer
Node position is being reset at the call of a SCNNode.runAction (Scenekit)
I currently have an application that flies a ship node in Scenekit through space at a constant velocity. I implemented a d-pad system that rotates the ship based on touch movement, the end goal being that the user can rotate the ship as it flies…

LittleRocketMan
- 33
- 4
0
votes
3 answers
In SceneKit SCNAction hangs when called from completion handler of RunAction
Calling an SCNAction from the completion handler of RunAction seems to hang SceneKit.
A touch event or rotating the device seems to unblock the hang.
To reproduce:
1) Take the default SceneKit project you get on startup with the rotating…

Bbx
- 3,184
- 3
- 22
- 33
-1
votes
1 answer
Swift SCNAction, rotate to a quaternion
I have a planeNode in a SceneKit Scene which I want to control. For this I want to constantly update the Orientation. Due to the Singularities of Euler Angles I am using Quaternions. So far I am directly updating planeNode.orientation and it works…

alexismue
- 29
- 5