Class SCNNode

    • Constructor Detail

      • SCNNode

        protected SCNNode​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static SCNNode alloc()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • node

        public static SCNNode node()
        node Creates and initializes a node instance.
      • nodeWithGeometry

        public static SCNNode nodeWithGeometry​(SCNGeometry geometry)
        nodeWithGeometry: Creates and initializes a node instance with the specified geometry attached.
        Parameters:
        geometry - The geometry to attach.
      • nodeWithMDLObject

        public static SCNNode nodeWithMDLObject​(MDLObject mdlObject)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • actionForKey

        public SCNAction actionForKey​(java.lang.String key)
        Description copied from interface: SCNActionable
        actionForKey: Returns an action associated with a specific key.
        Specified by:
        actionForKey in interface SCNActionable
      • actionKeys

        public NSArray<java.lang.String> actionKeys()
        Description copied from interface: SCNActionable
        [@property] actionKeys Returns an array containing the keys of all actions currently attached to the receiver.
        Specified by:
        actionKeys in interface SCNActionable
      • addAnimationForKey

        public void addAnimationForKey​(SCNAnimation animation,
                                       java.lang.String key)
        Description copied from interface: SCNAnimatable
        addAnimation:forKey: Adds and runs an animation Only SCNAnimation (preferred), CABasicAnimation, CAKeyframeAnimation and CAAnimationGroup are supported. The animation starts playing right away. The animation is automatically removed on completion unless if removedOnCompletion is explicitly set to NO.
        Specified by:
        addAnimationForKey in interface SCNAnimatable
        Parameters:
        animation - Added animation.
        key - May be any string such that only one animation per unique key is added per animatable object.
      • addAudioPlayer

        public void addAudioPlayer​(SCNAudioPlayer player)
        addAudioPlayer: Add an audio player to the node and starts playing it right away.
      • addChildNode

        public void addChildNode​(SCNNode child)
        addChildNode: Appends the node to the receiver’s childNodes array.
        Parameters:
        child - The node to be added to the receiver’s childNodes array.
      • addParticleSystem

        public void addParticleSystem​(SCNParticleSystem system)
        Add a particle system to the receiver.
      • animationForKey

        public CAAnimation animationForKey​(java.lang.String key)
        Description copied from interface: SCNAnimatable
        animationForKey: Returns the animation with the given identifier This will return nil if no such animation exists. Attempting to modify any properties of the returned object will result in undefined behavior.
        Specified by:
        animationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to retrieve.
      • animationKeys

        public NSArray<java.lang.String> animationKeys()
        Description copied from interface: SCNAnimatable
        [@property] animationKeys Returns an array containing the keys of all animations currently attached to the receiver.
        Specified by:
        animationKeys in interface SCNAnimatable
      • audioPlayers

        public NSArray<? extends SCNAudioPlayer> audioPlayers()
        [@property] audioPlayers Get an array with all the audio players connected and playing on this node.
      • camera

        public SCNCamera camera()
        [@property] camera Determines the camera attached to the receiver.
      • castsShadow

        public boolean castsShadow()
        [@property] castsShadow Determines if the node is rendered in shadow maps. Defaults to YES.
      • categoryBitMask

        public long categoryBitMask()
        [@property] categoryBitMask Defines what logical 'categories' the receiver belongs too. Defaults to 1. Categories can be used to 1. exclude nodes from the influence of a given light (see SCNLight.categoryBitMask) 2. include/exclude nodes from render passes (see SCNTechnique.h) 3. specify which nodes to use when hit-testing (see SCNHitTestOptionCategoryBitMask)
      • childNodeWithNameRecursively

        public SCNNode childNodeWithNameRecursively​(java.lang.String name,
                                                    boolean recursively)
        childNodeWithName:recursively: Returns the first node found in the node tree with the specified name. The search uses a pre-order tree traversal.
        Parameters:
        name - The name of the node you are searching for.
        recursively - Set to YES if you want the search to look through the sub-nodes recursively.
      • childNodes

        public NSArray<? extends SCNNode> childNodes()
        [@property] childNodes Returns the child node array of the receiver.
      • childNodesPassingTest

        public NSArray<? extends SCNNode> childNodesPassingTest​(SCNNode.Block_childNodesPassingTest predicate)
        childNodesPassingTest: Returns the child nodes of the receiver that passes a test in a given Block. The search is recursive and uses a pre-order tree traversal.
        Parameters:
        predicate - The block to apply to child nodes of the receiver. The block takes two arguments: "child" is a child node and "stop" is a reference to a Boolean value. The block can set the value to YES to stop further processing of the node hierarchy. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. The Block returns a Boolean value that indicates whether "child" passed the test.
      • clone

        public java.lang.Object clone()
        clone Returns a copy of the receiver. The returned instance is autoreleased. The copy is recursive: every child node will be cloned, too. For a non-recursive copy, use copy instead. The copied nodes will share their attached objects (light, geometry, camera, ...) with the original instances; if you want, for example, to change the materials of the copy independently of the original object, you'll have to copy the geometry of the node separately.
        Overrides:
        clone in class java.lang.Object
      • constraints

        public NSArray<? extends SCNConstraint> constraints()
        [@property] constraints An array of SCNConstraint that are applied to the receiver. Adding or removing a constraint can be implicitly animated based on the current transaction.
      • convertPositionFromNode

        public SCNVector3 convertPositionFromNode​(SCNVector3 position,
                                                  SCNNode node)
        convertPosition:fromNode: Converts a position from the coordinate system of a given node to that of the receiver.
        Parameters:
        position - A position specified in the local coordinate system of "node".
        node - The node from whose coordinate system "position" is to be converted. If "node" is nil, this method instead converts from world coordinates.
      • convertPositionToNode

        public SCNVector3 convertPositionToNode​(SCNVector3 position,
                                                SCNNode node)
        convertPosition:toNode: Converts a position from the receiver’s coordinate system to that of the specified node.
        Parameters:
        position - A position specified in the local coordinate system of the receiver.
        node - The node into whose coordinate system "position" is to be converted. If "node" is nil, this method instead converts to world coordinates.
      • convertTransformFromNode

        public SCNMatrix4 convertTransformFromNode​(SCNMatrix4 transform,
                                                   SCNNode node)
        convertTransform:fromNode: Converts a transform from the coordinate system of a given node to that of the receiver.
        Parameters:
        transform - A transform specified in the local coordinate system of "node".
        node - The node from whose coordinate system "transform" is to be converted. If "node" is nil, this method instead converts from world coordinates.
      • convertTransformToNode

        public SCNMatrix4 convertTransformToNode​(SCNMatrix4 transform,
                                                 SCNNode node)
        convertTransform:toNode: Converts a transform from the receiver’s coordinate system to that of the specified node.
        Parameters:
        transform - A transform specified in the local coordinate system of the receiver.
        node - The node into whose coordinate system "transform" is to be converted. If "node" is nil, this method instead converts to world coordinates.
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • enumerateChildNodesUsingBlock

        public void enumerateChildNodesUsingBlock​(SCNNode.Block_enumerateChildNodesUsingBlock block)
        enumerateChildNodesUsingBlock: Executes a given block on each child node under the receiver. The search is recursive and uses a pre-order tree traversal.
        Parameters:
        block - The block to apply to child nodes of the receiver. The block takes two arguments: "child" is a child node and "stop" is a reference to a Boolean value. The block can set the value to YES to stop further processing of the node hierarchy. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block.
      • enumerateHierarchyUsingBlock

        public void enumerateHierarchyUsingBlock​(SCNNode.Block_enumerateHierarchyUsingBlock block)
        enumerateHierarchyUsingBlock: Executes a given block on the receiver and its child nodes. The search is recursive and uses a pre-order tree traversal.
        Parameters:
        block - The block to apply to the receiver and its child nodes. The block takes two arguments: "node" is a node in the hierarchy of the receiver (including the receiver) and "stop" is a reference to a Boolean value. The block can set the value to YES to stop further processing of the node hierarchy. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block.
      • eulerAngles

        public SCNVector3 eulerAngles()
        [@property] eulerAngles Determines the receiver's euler angles. Animatable. [@dicussion] The order of components in this vector matches the axes of rotation: 1. Pitch (the x component) is the rotation about the node's x-axis (in radians) 2. Yaw (the y component) is the rotation about the node's y-axis (in radians) 3. Roll (the z component) is the rotation about the node's z-axis (in radians) SceneKit applies these rotations in the reverse order of the components: 1. first roll 2. then yaw 3. then pitch
      • filters

        public NSArray<? extends CIFilter> filters()
        [@property] filters An array of Core Image filters that are applied to the rendering of the receiver and its child nodes. Animatable. Defaults to nil. Filter properties should be modified by calling setValue:forKeyPath: on each node that the filter is attached to. If the inputs of the filter are modified directly after the filter is attached to a node, the behavior is undefined.
      • flattenedClone

        public java.lang.Object flattenedClone()
        flattenedClone Returns a clone of the node containing a geometry that concatenates all the geometries contained in the node hierarchy. The returned clone is autoreleased.
      • geometry

        public SCNGeometry geometry()
        [@property] geometry Returns the geometry attached to the receiver.
      • getBoundingBoxMinMax

        public boolean getBoundingBoxMinMax​(SCNVector3 min,
                                            SCNVector3 max)
        Description copied from interface: SCNBoundingVolume
        getBoundingBoxMin:max: Fill the min and max vectors with the min and max vertex of the bounding box. the returned bounding box is in local space of the receiver.
        Specified by:
        getBoundingBoxMinMax in interface SCNBoundingVolume
        Parameters:
        min - A pointer to a SCNVector3 to store the min vertex of the bounding box into.
        max - A pointer to a SCNVector3 to store the max vertex of the bounding box into.
      • getBoundingSphereCenterRadius

        public boolean getBoundingSphereCenterRadius​(SCNVector3 center,
                                                     org.moe.natj.general.ptr.NFloatPtr radius)
        Description copied from interface: SCNBoundingVolume
        getBoundingSphereCenter:radius: Fill the center vector with the center of the bounding sphere and store the radius of the bounding sphere in 'radius'. the returned bounding sphere is in local space of the receiver.
        Specified by:
        getBoundingSphereCenterRadius in interface SCNBoundingVolume
        Parameters:
        center - A pointer to a SCNVector3 to store the center of the bounding sphere into.
        radius - A pointer to a CGFloat to store the radius of the bounding sphere into.
      • hasActions

        public boolean hasActions()
        Description copied from interface: SCNActionable
        [@property] hasActions Returns a Boolean value that indicates whether the node is executing actions.
        Specified by:
        hasActions in interface SCNActionable
      • hitTestWithSegmentFromPointToPointOptions

        public NSArray<? extends SCNHitTestResult> hitTestWithSegmentFromPointToPointOptions​(SCNVector3 pointA,
                                                                                             SCNVector3 pointB,
                                                                                             NSDictionary<java.lang.String,​?> options)
        hitTestWithSegmentFromPoint:toPoint:options: Returns an array of SCNHitTestResult for each node in the receiver's sub tree that intersects the specified segment. See SCNSceneRenderer.h for a screen-space hit testing method.
        Parameters:
        pointA - The first point of the segment relative to the receiver.
        pointB - The second point of the segment relative to the receiver.
        options - Optional parameters (see the "Hit test options" section in SCNSceneRenderer.h for the available options).
      • insertChildNodeAtIndex

        public void insertChildNodeAtIndex​(SCNNode child,
                                           long index)
        insertChildNode:atIndex: Insert a node in the childNodes array at the specified index.
        Parameters:
        child - The node to insert.
        index - Index in the childNodes array to insert the node.
      • isAnimationForKeyPaused

        public boolean isAnimationForKeyPaused​(java.lang.String key)
        Description copied from interface: SCNAnimatable
        isAnimationForKeyPaused: Returns whether the animation for the specified identifier is paused.
        Specified by:
        isAnimationForKeyPaused in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to query.
      • isHidden

        public boolean isHidden()
        [@property] hidden Determines whether the receiver is displayed. Defaults to NO. Animatable.
      • setHidden

        public void setHidden​(boolean value)
        [@property] hidden Determines whether the receiver is displayed. Defaults to NO. Animatable.
      • isPaused

        public boolean isPaused()
        [@property] paused Controls whether or not the node's actions and animations are updated or paused. Defaults to NO.
      • setPaused

        public void setPaused​(boolean value)
        [@property] paused Controls whether or not the node's actions and animations are updated or paused. Defaults to NO.
      • light

        public SCNLight light()
        [@property] light Determines the light attached to the receiver.
      • morpher

        public SCNMorpher morpher()
        [@property] morpher Returns the morpher attached to the receiver.
      • movabilityHint

        public long movabilityHint()
        [@property] movabilityHint Communicates to SceneKit’s rendering system about how you want to move content in your scene; it does not affect your ability to change the node’s position or add animations or physics to the node. Defaults to SCNMovabilityHintFixed.
      • name

        public java.lang.String name()
        [@property] name Determines the name of the receiver.
      • opacity

        public double opacity()
        [@property] opacity Determines the opacity of the receiver. Default is 1. Animatable.
      • orientation

        public SCNVector4 orientation()
        [@property] orientation Determines the receiver's orientation as a unit quaternion. Animatable.
      • parentNode

        public SCNNode parentNode()
        [@property] parentNode Returns the parent node of the receiver.
      • particleSystems

        public NSArray<? extends SCNParticleSystem> particleSystems()
        The particle systems attached to the node.
      • pauseAnimationForKey

        public void pauseAnimationForKey​(java.lang.String key)
        Description copied from interface: SCNAnimatable
        pauseAnimationForKey: Pause the animation with the given identifier.
        Specified by:
        pauseAnimationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to pause.
      • physicsBody

        public SCNPhysicsBody physicsBody()
        [@property] physicsBody The description of the physics body of the receiver. Default is nil.
      • physicsField

        public SCNPhysicsField physicsField()
        [@property] physicsField The description of the physics field of the receiver. Default is nil.
      • pivot

        public SCNMatrix4 pivot()
        [@property] pivot Determines the receiver's pivot. Animatable.
      • position

        public SCNVector3 position()
        [@property] position Determines the receiver's position. Animatable.
      • presentationNode

        public SCNNode presentationNode()
        [@property] presentationNode Returns the presentation node. Returns a copy of the node containing all the properties as they were at the start of the current transaction, with any active animations applied. This gives a close approximation to the version of the node that is currently displayed. The effect of attempting to modify the returned node in any way is undefined. The returned node has no parent and no child nodes.
      • removeActionForKey

        public void removeActionForKey​(java.lang.String key)
        Description copied from interface: SCNActionable
        removeActionForKey: Removes an action associated with a specific key.
        Specified by:
        removeActionForKey in interface SCNActionable
      • removeAllActions

        public void removeAllActions()
        Description copied from interface: SCNActionable
        removeAllActions Ends and removes all actions from the node.
        Specified by:
        removeAllActions in interface SCNActionable
      • removeAllAudioPlayers

        public void removeAllAudioPlayers()
        removeAllAudioPlayers Remove all audio players from this node and stop playing them.
      • removeAllParticleSystems

        public void removeAllParticleSystems()
        Remove all particle systems of the receiver.
      • removeAnimationForKey

        public void removeAnimationForKey​(java.lang.String key)
        Description copied from interface: SCNAnimatable
        removeAnimationForKey Remove the animation with the given identifier.
        Specified by:
        removeAnimationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to remove.
      • removeAnimationForKeyFadeOutDuration

        public void removeAnimationForKeyFadeOutDuration​(java.lang.String key,
                                                         double duration)
        Description copied from interface: SCNAnimatable
        removeAnimationForKey:fadeOutDuration: Smoothly remove the animation with the given identifier.
        Specified by:
        removeAnimationForKeyFadeOutDuration in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to remove.
        duration - The fade out duration used to remove the animation.
      • removeAudioPlayer

        public void removeAudioPlayer​(SCNAudioPlayer player)
        removeAudioPlayer: Remove the given audio player from this node and stop playing it.
      • removeFromParentNode

        public void removeFromParentNode()
        removeFromParentNode Removes the node from the childNodes array of the receiver’s parentNode.
      • removeParticleSystem

        public void removeParticleSystem​(SCNParticleSystem system)
        Remove the specified particle system from the receiver.
      • rendererDelegate

        public SCNNodeRendererDelegate rendererDelegate()
        [@property] rendererDelegate Specifies the receiver's renderer delegate object. Setting a renderer delegate prevents the SceneKit renderer from drawing the node and lets you use custom OpenGL code instead. The preferred way to customize the rendering is to tweak the material properties of the different materials of the node's geometry. SCNMaterial conforms to the SCNShadable protocol and allows for more advanced rendering using GLSL. You would typically use a renderer delegate with a node that has no geometry and only serves as a location in space. An example would be attaching a particle system to that node and render it with custom OpenGL code.
      • renderingOrder

        public long renderingOrder()
        [@property] renderingOrder Determines the rendering order of the receiver. Nodes with greater rendering orders are rendered last. Defaults to 0.
      • replaceChildNodeWith

        public void replaceChildNodeWith​(SCNNode oldChild,
                                         SCNNode newChild)
        replaceChildNode:with: Remove `child' from the childNode array of the receiver and insert 'child2' if non-nil in its position. If the parentNode of `child' is not the receiver, the behavior is undefined.
        Parameters:
        oldChild - The node to replace in the childNodes array.
        newChild - The new node that will replace the previous one.
      • resumeAnimationForKey

        public void resumeAnimationForKey​(java.lang.String key)
        Description copied from interface: SCNAnimatable
        resumeAnimationForKey: Resume the animation with the given identifier.
        Specified by:
        resumeAnimationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to resume.
      • rotation

        public SCNVector4 rotation()
        [@property] rotation Determines the receiver's rotation. Animatable. The rotation is axis angle rotation. The three first components are the axis, the fourth one is the rotation (in radian).
      • runAction

        public void runAction​(SCNAction action)
        Description copied from interface: SCNActionable
        runAction: Adds an action to the list of actions executed by the node.
        Specified by:
        runAction in interface SCNActionable
      • runActionForKey

        public void runActionForKey​(SCNAction action,
                                    java.lang.String key)
        Description copied from interface: SCNActionable
        runAction:forKey: Adds an identifiable action to the list of actions executed by the node.
        Specified by:
        runActionForKey in interface SCNActionable
      • scale

        public SCNVector3 scale()
        [@property] scale Determines the receiver's scale. Animatable.
      • setBoundingBoxMinMax

        public void setBoundingBoxMinMax​(SCNVector3 min,
                                         SCNVector3 max)
        Description copied from interface: SCNBoundingVolume
        setBoundingBoxMin:max: Override the receiver bounding box with the min and max vectors provided (in local space of the receiver). Passing nil as arguments will recompute the original bounding box of the receiver.
        Specified by:
        setBoundingBoxMinMax in interface SCNBoundingVolume
        Parameters:
        min - A pointer to a SCNVector3 representing the min vertex of the desired bounding box.
        max - A pointer to a SCNVector3 representing the max vertex of the desired bounding box.
      • setCamera

        public void setCamera​(SCNCamera value)
        [@property] camera Determines the camera attached to the receiver.
      • setCastsShadow

        public void setCastsShadow​(boolean value)
        [@property] castsShadow Determines if the node is rendered in shadow maps. Defaults to YES.
      • setCategoryBitMask

        public void setCategoryBitMask​(long value)
        [@property] categoryBitMask Defines what logical 'categories' the receiver belongs too. Defaults to 1. Categories can be used to 1. exclude nodes from the influence of a given light (see SCNLight.categoryBitMask) 2. include/exclude nodes from render passes (see SCNTechnique.h) 3. specify which nodes to use when hit-testing (see SCNHitTestOptionCategoryBitMask)
      • setConstraints

        public void setConstraints​(NSArray<? extends SCNConstraint> value)
        [@property] constraints An array of SCNConstraint that are applied to the receiver. Adding or removing a constraint can be implicitly animated based on the current transaction.
      • setEulerAngles

        public void setEulerAngles​(SCNVector3 value)
        [@property] eulerAngles Determines the receiver's euler angles. Animatable. [@dicussion] The order of components in this vector matches the axes of rotation: 1. Pitch (the x component) is the rotation about the node's x-axis (in radians) 2. Yaw (the y component) is the rotation about the node's y-axis (in radians) 3. Roll (the z component) is the rotation about the node's z-axis (in radians) SceneKit applies these rotations in the reverse order of the components: 1. first roll 2. then yaw 3. then pitch
      • setFilters

        public void setFilters​(NSArray<? extends CIFilter> value)
        [@property] filters An array of Core Image filters that are applied to the rendering of the receiver and its child nodes. Animatable. Defaults to nil. Filter properties should be modified by calling setValue:forKeyPath: on each node that the filter is attached to. If the inputs of the filter are modified directly after the filter is attached to a node, the behavior is undefined.
      • setGeometry

        public void setGeometry​(SCNGeometry value)
        [@property] geometry Returns the geometry attached to the receiver.
      • setLight

        public void setLight​(SCNLight value)
        [@property] light Determines the light attached to the receiver.
      • setMorpher

        public void setMorpher​(SCNMorpher value)
        [@property] morpher Returns the morpher attached to the receiver.
      • setMovabilityHint

        public void setMovabilityHint​(long value)
        [@property] movabilityHint Communicates to SceneKit’s rendering system about how you want to move content in your scene; it does not affect your ability to change the node’s position or add animations or physics to the node. Defaults to SCNMovabilityHintFixed.
      • setName

        public void setName​(java.lang.String value)
        [@property] name Determines the name of the receiver.
      • setOpacity

        public void setOpacity​(double value)
        [@property] opacity Determines the opacity of the receiver. Default is 1. Animatable.
      • setOrientation

        public void setOrientation​(SCNVector4 value)
        [@property] orientation Determines the receiver's orientation as a unit quaternion. Animatable.
      • setPhysicsBody

        public void setPhysicsBody​(SCNPhysicsBody value)
        [@property] physicsBody The description of the physics body of the receiver. Default is nil.
      • setPhysicsField

        public void setPhysicsField​(SCNPhysicsField value)
        [@property] physicsField The description of the physics field of the receiver. Default is nil.
      • setPivot

        public void setPivot​(SCNMatrix4 value)
        [@property] pivot Determines the receiver's pivot. Animatable.
      • setPosition

        public void setPosition​(SCNVector3 value)
        [@property] position Determines the receiver's position. Animatable.
      • setRendererDelegate_unsafe

        public void setRendererDelegate_unsafe​(SCNNodeRendererDelegate value)
        [@property] rendererDelegate Specifies the receiver's renderer delegate object. Setting a renderer delegate prevents the SceneKit renderer from drawing the node and lets you use custom OpenGL code instead. The preferred way to customize the rendering is to tweak the material properties of the different materials of the node's geometry. SCNMaterial conforms to the SCNShadable protocol and allows for more advanced rendering using GLSL. You would typically use a renderer delegate with a node that has no geometry and only serves as a location in space. An example would be attaching a particle system to that node and render it with custom OpenGL code.
      • setRendererDelegate

        public void setRendererDelegate​(SCNNodeRendererDelegate value)
        [@property] rendererDelegate Specifies the receiver's renderer delegate object. Setting a renderer delegate prevents the SceneKit renderer from drawing the node and lets you use custom OpenGL code instead. The preferred way to customize the rendering is to tweak the material properties of the different materials of the node's geometry. SCNMaterial conforms to the SCNShadable protocol and allows for more advanced rendering using GLSL. You would typically use a renderer delegate with a node that has no geometry and only serves as a location in space. An example would be attaching a particle system to that node and render it with custom OpenGL code.
      • setRenderingOrder

        public void setRenderingOrder​(long value)
        [@property] renderingOrder Determines the rendering order of the receiver. Nodes with greater rendering orders are rendered last. Defaults to 0.
      • setRotation

        public void setRotation​(SCNVector4 value)
        [@property] rotation Determines the receiver's rotation. Animatable. The rotation is axis angle rotation. The three first components are the axis, the fourth one is the rotation (in radian).
      • setScale

        public void setScale​(SCNVector3 value)
        [@property] scale Determines the receiver's scale. Animatable.
      • setSkinner

        public void setSkinner​(SCNSkinner value)
        [@property] skinner Returns the skinner attached to the receiver.
      • setSpeedForAnimationKey

        public void setSpeedForAnimationKey​(double speed,
                                            java.lang.String key)
        Description copied from interface: SCNAnimatable
        setSpeed:forAnimationKey: Update the animation speed of the animation with the given identifier.
        Specified by:
        setSpeedForAnimationKey in interface SCNAnimatable
        Parameters:
        speed - The new speed of the animation.
        key - The identifier for the animation to update.
      • setTransform

        public void setTransform​(SCNMatrix4 value)
        [@property] transform Determines the receiver's transform. Animatable. The transform is the combination of the position, rotation and scale defined below. So when the transform is set, the receiver's position, rotation and scale are changed to match the new transform.
      • skinner

        public SCNSkinner skinner()
        [@property] skinner Returns the skinner attached to the receiver.
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • transform

        public SCNMatrix4 transform()
        [@property] transform Determines the receiver's transform. Animatable. The transform is the combination of the position, rotation and scale defined below. So when the transform is set, the receiver's position, rotation and scale are changed to match the new transform.
      • worldTransform

        public SCNMatrix4 worldTransform()
        [@property] worldTransform Determines the receiver's transform in world space (relative to the scene's root node). Animatable.
      • addAnimationPlayerForKey

        public void addAnimationPlayerForKey​(SCNAnimationPlayer player,
                                             java.lang.String key)
        Description copied from interface: SCNAnimatable
        addAnimationPlayer:forKey: Add an animation player. The animation player is not removed automatically on completion. The animation doesn't start playing immediatelly. Call "play" on the player to start playing it.
        Specified by:
        addAnimationPlayerForKey in interface SCNAnimatable
        Parameters:
        player - Added animation player.
        key - May be any string such that only one animation per unique key is added per animatable object.
      • animationPlayerForKey

        public SCNAnimationPlayer animationPlayerForKey​(java.lang.String key)
        Description copied from interface: SCNAnimatable
        animationPlayerForKey: Returns the animation player with the given identifier This will return nil if no such animation player exists.
        Specified by:
        animationPlayerForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation player to retrieve.
      • canBecomeFocused

        public boolean canBecomeFocused()
        Description copied from interface: UIFocusItem
        Indicates whether or not this item is currently allowed to become focused. Returning NO restricts the item from being focusable, even if it is visible in the user interface. For example, UIControls return NO if they are disabled.
        Specified by:
        canBecomeFocused in interface UIFocusItem
      • convertVectorFromNode

        public SCNVector3 convertVectorFromNode​(SCNVector3 vector,
                                                SCNNode node)
        Converts a vector from the coordinate system of a given node to that of the receiver.
        Parameters:
        vector - A vector specified in the local coordinate system of "node".
        node - The node defining the space to which the vector should be transformed to. If "node" is nil, this method instead converts from world coordinates.
        Returns:
        vector transformed from node space to reveiver local space.
      • convertVectorToNode

        public SCNVector3 convertVectorToNode​(SCNVector3 vector,
                                              SCNNode node)
        Converts a vector from the coordinate system of a given node to that of the receiver.
        Parameters:
        vector - A vector specified in the local coordinate system the receiver.
        node - The node defining the space from which the vector should be transformed. If "node" is nil, this method instead converts from world coordinates.
        Returns:
        vector transformed from receiver local space to node local space.
      • entity

        public GKEntity entity()
        The GKEntity associated with the node via a GKSCNNodeComponent.
        See Also:
        GKEntity
      • focusBehavior

        public long focusBehavior()
        [@property] focusBehavior Controls the behavior of the receiver regarding the UIFocus system. Defaults to SCNNodeFocusBehaviorNone.
      • localFront

        public static SCNVector3 localFront()
        [@property] localFront The local unit -Z axis (0, 0, -1).
      • localRight

        public static SCNVector3 localRight()
        [@property] localRight The local unit X axis (1, 0, 0).
      • localRotateBy

        public void localRotateBy​(SCNVector4 rotation)
        Apply a the given rotation to the current one.
        Parameters:
        rotation - rotation in local space.
      • localTranslateBy

        public void localTranslateBy​(SCNVector3 translation)
        Translate the current node position along the given vector in local space.
        Parameters:
        translation - the translation in local space.
      • localUp

        public static SCNVector3 localUp()
        [@property] localUp The local unit Y axis (0, 1, 0).
      • lookAt

        public void lookAt​(SCNVector3 worldTarget)
        Convenience for calling lookAt:up:localFront: with worldUp set to `self.worldUp` and localFront [SCNNode localFront].
        Parameters:
        worldTarget - target position in world space.
      • lookAtUpLocalFront

        public void lookAtUpLocalFront​(SCNVector3 worldTarget,
                                       SCNVector3 worldUp,
                                       SCNVector3 localFront)
        Set the orientation of the node so its front vector is pointing toward a given target. Using a reference up vector in world space and a front vector in local space.
        Parameters:
        worldTarget - position in world space.
        worldUp - the up vector in world space.
        localFront - the front vector in local space.
      • preferredFocusEnvironments

        public NSArray<?> preferredFocusEnvironments()
        Description copied from interface: UIFocusEnvironment
        The preferred focus environments define where to search for the default focused item in an environment, such as when focus updates programmatically. Starting from the target environment, each preferred focus environment is recursively searched in the order of the array until an eligible, focusable item is found. Preferred focus environments can include focusable and non-focusable items, in addition to non-item environments. Returning an empty array is equivalent to returning an array containing only 'self'.
        Specified by:
        preferredFocusEnvironments in interface UIFocusEnvironment
      • removeAnimationForKeyBlendOutDuration

        public void removeAnimationForKeyBlendOutDuration​(java.lang.String key,
                                                          double duration)
        Description copied from interface: SCNAnimatable
        Smoothly remove the animation with the given identifier.
        Specified by:
        removeAnimationForKeyBlendOutDuration in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to remove.
        duration - The blend out duration used to remove the animation.
      • rotateByAroundTarget

        public void rotateByAroundTarget​(SCNVector4 worldRotation,
                                         SCNVector3 worldTarget)
        Apply a rotation relative to a target point in parent space.
        Parameters:
        worldRotation - rotation to apply in world space.
        worldTarget - position of the target in world space.
      • setEntity_unsafe

        public void setEntity_unsafe​(GKEntity value)
        The GKEntity associated with the node via a GKSCNNodeComponent.
        See Also:
        GKEntity
      • setEntity

        public void setEntity​(GKEntity value)
        The GKEntity associated with the node via a GKSCNNodeComponent.
        See Also:
        GKEntity
      • setFocusBehavior

        public void setFocusBehavior​(long value)
        [@property] focusBehavior Controls the behavior of the receiver regarding the UIFocus system. Defaults to SCNNodeFocusBehaviorNone.
      • setNeedsFocusUpdate

        public void setNeedsFocusUpdate()
        Description copied from interface: UIFocusEnvironment
        Marks this environment as needing a focus update, which if accepted will attempt to reset focus to this environment, or one of its preferred focus environments, on the next update cycle. If this environment does not currently contain the focused item, then calling this method has no effect. If a parent of this environment is also requesting focus, then this environment's request is rejected in favor of the parent's. NOTE: If you provide your own implementation, it must call `[[UIFocusSystem focusSystemForEnvironment:self] requestFocusUpdateToEnvironment:self]`;
        Specified by:
        setNeedsFocusUpdate in interface UIFocusEnvironment
      • setWorldOrientation

        public void setWorldOrientation​(SCNVector4 value)
        [@property] worldOrientation Determines the receiver's orientation in world space (relative to the scene's root node). Animatable.
      • setWorldPosition

        public void setWorldPosition​(SCNVector3 value)
        [@property] worldPosition Determines the receiver's position in world space (relative to the scene's root node).
      • setWorldTransform

        public void setWorldTransform​(SCNMatrix4 worldTransform)
      • updateFocusIfNeeded

        public void updateFocusIfNeeded()
        Description copied from interface: UIFocusEnvironment
        Forces focus to be updated immediately. If there is an environment that has requested a focus update via -setNeedsFocusUpdate, and the request was accepted, then focus will be updated to that environment or one of its preferred focus environments. NOTE: If you provide your own implementation, it must call `[[UIFocusSystem focusSystemForEnvironment:self] updateFocusIfNeeded];`.
        Specified by:
        updateFocusIfNeeded in interface UIFocusEnvironment
      • worldFront

        public SCNVector3 worldFront()
        [@property] worldFront The local unit -Z axis (0, 0, -1) in world space.
      • worldOrientation

        public SCNVector4 worldOrientation()
        [@property] worldOrientation Determines the receiver's orientation in world space (relative to the scene's root node). Animatable.
      • worldPosition

        public SCNVector3 worldPosition()
        [@property] worldPosition Determines the receiver's position in world space (relative to the scene's root node).
      • worldRight

        public SCNVector3 worldRight()
        [@property] worldRight The local unit X axis (1, 0, 0) in world space.
      • worldUp

        public SCNVector3 worldUp()
        [@property] worldUp The local unit Y axis (0, 1, 0) in world space.
      • didHintFocusMovement

        public void didHintFocusMovement​(UIFocusMovementHint hint)
        Description copied from interface: UIFocusItem
        Called whenever this focus item is hinting to the user a focus movement might occur. The provided object is mutated by the focus engine whenever the user's finger moves.
        Specified by:
        didHintFocusMovement in interface UIFocusItem
      • frame

        public CGRect frame()
        Description copied from interface: UIFocusItem
        The geometric frame of this item, represented in the `coordinateSpace` of the UIFocusItemContainer in which it is contained.
        Specified by:
        frame in interface UIFocusItem
      • parentFocusEnvironment

        public UIFocusEnvironment parentFocusEnvironment()
        Description copied from interface: UIFocusEnvironment
        The parent focus environment of this environment, or nil if no parent exists. NOTE: If you implement this method, you must return a non-nil value for parent focus environment, otherwise your focus environment will not participate in focus interactions.
        Specified by:
        parentFocusEnvironment in interface UIFocusEnvironment
      • focusGroupIdentifier

        public java.lang.String focusGroupIdentifier()
        Description copied from interface: UIFocusEnvironment
        The identifier of the focus group that this view belongs to. If this is nil, subviews inherit their superview's focus group.
        Specified by:
        focusGroupIdentifier in interface UIFocusEnvironment