SCNNode(AssimpImport) Category Reference

Declared in SCNNode+AssimpImport.h
SCNNode+AssimpImport.m

Overview

A scenekit SCNNode category which imitates the SCNAnimatable protocol.

SCNAnimatable Clone

– addAnimationScene:forKey:withSettings:

Adds an animation object for the specified key..

- (void)addAnimationScene:(SCNScene *)animScene forKey:(NSString *)animKey withSettings:(SCNAssimpAnimSettings *)settings

Parameters

animScene

The scene object representing the animation.

animKey

An string identifying the animation for later retrieval. You may pass nil if you don’t need to reference the animation later.

settings

The animation settings object.

Discussion

Adds an animation object for the specified key..

Declared In

SCNNode+AssimpImport.h

– removeAnimationSceneForKey:

Removes the animation attached to the object with the specified key.

- (void)removeAnimationSceneForKey:(NSString *)animKey

Parameters

animKey

A string identifying an attached animation to remove.

Discussion

Removes the animation attached to the object with the specified key.

Declared In

SCNNode+AssimpImport.h

– removeAnimationSceneForKey:fadeOutDuration:

Removes the animation attached to the object with the specified key, smoothly transitioning out of the animation’s effect.

- (void)removeAnimationSceneForKey:(NSString *)animKey fadeOutDuration:(CGFloat)fadeOutDuration

Parameters

animKey

A string identifying an attached animation to remove.

fadeOutDuration

The duration for transitioning out of the animation’s effect before it is removed

Discussion

Removes the animation attached to the object with the specified key, smoothly transitioning out of the animation’s effect.

Declared In

SCNNode+AssimpImport.h

– pauseAnimationSceneForKey:

Pauses the animation attached to the object with the specified key.

- (void)pauseAnimationSceneForKey:(NSString *)animKey

Parameters

animKey

A string identifying an attached animation.

Discussion

Pauses the animation attached to the object with the specified key.

Declared In

SCNNode+AssimpImport.h

– resumeAnimationSceneForKey:

Resumes a previously paused animation attached to the object with the specified key.

- (void)resumeAnimationSceneForKey:(NSString *)animKey

Parameters

animKey

A string identifying an attached animation.

Discussion

Resumes a previously paused animation attached to the object with the specified key.

Declared In

SCNNode+AssimpImport.h

– isAnimationSceneForKeyPaused:

Returns a Boolean value indicating whether the animation attached to the object with the specified key is paused.

- (BOOL)isAnimationSceneForKeyPaused:(NSString *)animKey

Parameters

animKey

A string identifying an attached animation.

Return Value

YES if the specified animation is paused. NO if the animation is running or no animation is attached to the object with that key.

Discussion

Returns a Boolean value indicating whether the animation attached to the object with the specified key is paused.

Declared In

SCNNode+AssimpImport.h

– addAnimationFromNode:forKey:withSettings:hasEvents:hasDelegate:

Adds the animation at the given node subtree to the corresponding node subtree in the scene.

- (void)addAnimationFromNode:(SCNNode *)animNode forKey:(NSString *)animKey withSettings:(SCNAssimpAnimSettings *)settings hasEvents:(BOOL)hasEvents hasDelegate:(BOOL)hasDelegate

Parameters

animNode

The node and it’s subtree which has a CAAnimation.

Discussion

Adds the animation at the given node subtree to the corresponding node subtree in the scene.

Declared In

SCNNode+AssimpImport.m

Skeleton

– findSkeletonRootNode

Finds the root node of the skeleton in the scene.

- (SCNNode *)findSkeletonRootNode

Return Value

Retuns the root node of the skeleton in the scene.

Discussion

Finds the root node of the skeleton in the scene.

Declared In

SCNNode+AssimpImport.h