#import <CC3CALNode.h>
Additional Inherited Members | |
Class Methods inherited from CC3Node | |
(GLfloat) | + __deprecated |
(CGFloat) | + descriptorFontSize |
(ccColor4F) | + directionMarkerColor |
(id) | + node |
(id) | + nodeAtIndex:fromPODResource: |
(id) | + nodeWithName: |
(id) | + nodeWithTag: |
(id) | + nodeWithTag:withName: |
(void) | + setDefaultScaleTolerance: |
(void) | + setDescriptorFontSize: |
(void) | + setDirectionMarkerColor: |
(void) | + setWireframeBoxColor: |
(ccColor4F) | + wireframeBoxColor |
A CC3CALNode extracted from a file.
During extraction from the file, nodes of this type are related to each other through index values.
Only CC3ArrayNodeAnimation should be used for animating this type of node.
CAF bones do not contain scale content. When a skeleton model whose bones do contain scale content is exported to a CAF file, the animation location content is incorrectly scaled.
To compensate, when using a CC3CALNode to hold animation content loaded from a CAF file, invoke the correctAnimationToSkeletalScale: method, passing the skeletalScale of the node to which the animation contained in the CC3CALNode is to be attached. This should only be done once, and subsequent invocations of that method will be ignored. Consequently, the animation held in a CC3CALNode should only be used to animate bones that have the same skeletalScale.
- (void) correctAnimationToSkeletalScale: | (CC3Vector) | aScale |
Corrects the animation contained in this node to align with the specified skeletalScale.
CAF bones do not contain scale content. When a skeleton model whose bones do contain scale content is exported to a CAF file, the location content of this animation is not correctly scaled.
To compensate, invoke this method, passing the skeletalScale of the node to which this animation is to be attached.
When this method is invoked, if the value of the isAnimationCorrectedForScale property is NO, each location in the animation contained in this node (on all animation tracks) is scaled by the inverse of the specified scale. Once this is complete, the value of the isAnimationCorrectedForScale property is set to YES.
Since this scaling should only be done once, subsequent invocations of this method will be ignored. Consequently, the contained animation should only be used to animate bones that have the same skeletalScale.
This method is invoked automatically when this CAL node is retrieved from the CAF resource using the CC3CAFResource getNodeMatching: method. Normally, the application never has need to invoke this method.
- (CC3CALNode*) getNodeWithCALIndex: | (GLint) | calIndex |
Retrieves the first node found with the specified calIndex, anywhere in the structural hierarchy of descendants of this node (not just direct children).
The hierarchy search is depth-first.
- (void) linkToCALNodes: | (NSArray *) | nodeArray |
Links this node to its parent by retrieving the node at the position in the array specified by the calParentIndex of this node.
|
readwritenonatomicassign |
The index of this node in the resource file.
|
readwritenonatomicassign |
The index of the parent of this node in the resource file.
|
readnonatomicassign |
Indicates whether the contained animation has been corrected for the scale of the node.
|
readnonatomicassign |
Returns whether this node is a base node.
It is if the calParentIndex is negative.