Platforms to show: All Mac Windows Linux Cross-Platform
Back to SCNNodeMBS class.
SCNNodeMBS.rotateBy(worldRotation as SCNVector4MBS, worldTarget as SCNVector3MBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
worldRotation: The axis and angle of rotation to apply, in scene space, expressed as a quaternion.
worldTarget: The center point, in scene space, about which to rotate.
The effects of this method are animatable; that is, calling this method during an implicit-animation transaction animates the rotation effect.
Available in macOS 10.13 or later.
SCNNodeMBS.runAction(action as SCNActionMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
action: The action to be performed.
SceneKit begins running a newly added action when it prepares to render the next frame.
See also:
- runAction(action as SCNActionMBS, del as SCNNodeRunActionCompletedMBS, tag as variant = nil)
- runAction(action as SCNActionMBS, key as string)
- runAction(action as SCNActionMBS, key as string, del as SCNNodeRunActionCompletedMBS, tag as variant = nil)
Some examples using this method:
SCNNodeMBS.runAction(action as SCNActionMBS, del as SCNNodeRunActionCompletedMBS, tag as variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
action: The action to be performed.
del: The method that SceneKit calls when the action completes.
tag: The tag is passed through to delegate method.
The new action is processed the next time SceneKit prepares to render a frame.
SceneKit calls your method after the action’s duration is complete. For example, in a game you could use this method to show a Game Over message after performing a fade-out action on a node that displays a player character.
See also:
SCNNodeMBS.runAction(action as SCNActionMBS, key as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
action: The action to be performed.
key: A unique key used to identify the action.
This method is identical to runAction, but the action is stored and identified so that you can retrieve or cancel it later. If an action using the same key is already running, SceneKit removes it before adding the new action.
See also:
SCNNodeMBS.runAction(action as SCNActionMBS, key as string, del as SCNNodeRunActionCompletedMBS, tag as variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
SceneKit calls the specified block when the action completes.
action: The action to be performed.
key: A unique key used to identify the action.
del: A completion block called when the action completes.
tag: The tag is passed through to delegate method.
This method is identical to runAction, but the action is stored and identified so that you can retrieve or cancel it later. If an action using the same key is already running, SceneKit removes it before adding the new action.
SceneKit calls your method after the action’s duration is complete. For example, you can use this method with a wait action to execute some code after a timed delay. If during the delay period you need to prevent the code from running, use the removeActionForKey method to cancel it.
See also:
SCNNodeMBS.setConstraints(constraints() as SCNConstraintMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
An array of constraint objects. Before rendering, SceneKit evaluates all constraints attached to a node hierarchy and adjusts node transformations appropriately.
Use the SCNLookAtConstraintMBS class to make a node always point toward another node even as both are moved, or the SCNTransformConstraintMBS class to apply arbitrary transformations at constraint evaluation time.
Some examples using this method:
The items on this page are in the following plugins: MBS Mac64bit Plugin.