|
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCPhysicsSprite.h>
Protected Attributes | |
| BOOL | _ignoreBodyRotation |
| Protected Attributes inherited from CCSprite | |
| CCTextureAtlas * | textureAtlas_ |
| NSUInteger | atlasIndex_ |
| CCSpriteBatchNode * | batchNode_ |
| CGAffineTransform | transformToBatch_ |
| BOOL | dirty_ |
| BOOL | recursiveDirty_ |
| BOOL | hasChildren_ |
| BOOL | shouldBeHidden_ |
| ccBlendFunc | blendFunc_ |
| CCTexture2D * | texture_ |
| CGRect | rect_ |
| BOOL | rectRotated_ |
| CGPoint | offsetPosition_ |
| CGPoint | unflippedOffsetPositionFromCenter_ |
| ccV3F_C4B_T2F_Quad | quad_ |
| GLubyte | opacity_ |
| ccColor3B | color_ |
| ccColor3B | colorUnmodified_ |
| BOOL | opacityModifyRGB_ |
| BOOL | flipX_ |
| BOOL | flipY_ |
| Protected Attributes inherited from CCNode | |
| float | rotationX_ |
| float | rotationY_ |
| float | scaleX_ |
| float | scaleY_ |
| float | vertexZ_ |
| CGPoint | position_ |
| float | skewX_ |
| float | skewY_ |
| CGPoint | anchorPointInPoints_ |
| CGPoint | anchorPoint_ |
| CGSize | contentSize_ |
| CGAffineTransform | transform_ |
| CGAffineTransform | inverse_ |
| CCCamera * | camera_ |
| CCGridBase * | grid_ |
| NSInteger | zOrder_ |
| CCArray * | children_ |
| CCNode * | parent_ |
| NSInteger | tag_ |
| void * | userData_ |
| id | userObject_ |
| CCGLProgram * | shaderProgram_ |
| ccGLServerState | glServerState_ |
| NSUInteger | orderOfArrival_ |
| CCScheduler * | scheduler_ |
| CCActionManager * | actionManager_ |
| BOOL | isRunning_ |
| BOOL | isTransformDirty_ |
| BOOL | isInverseDirty_ |
| BOOL | visible_ |
| BOOL | ignoreAnchorPointForPosition_ |
| BOOL | isReorderChildDirty_ |
Properties | |
| BOOL | ignoreBodyRotation |
| Properties inherited from CCSprite | |
| BOOL | dirty |
| ccV3F_C4B_T2F_Quad | quad |
| NSUInteger | atlasIndex |
| CGRect | textureRect |
| BOOL | textureRectRotated |
| BOOL | flipX |
| BOOL | flipY |
| GLubyte | opacity |
| ccColor3B | color |
| CCTextureAtlas * | textureAtlas |
| CCSpriteBatchNode * | batchNode |
| CGPoint | offsetPosition |
| ccBlendFunc | blendFunc |
| Properties inherited from CCNode | |
| NSInteger | zOrder |
| float | vertexZ |
| float | skewX |
| float | skewY |
| float | rotation |
| float | rotationX |
| float | rotationY |
| float | scale |
| float | scaleX |
| float | scaleY |
| CGPoint | position |
| CCCamera * | camera |
| CCArray * | children |
| CCGridBase * | grid |
| BOOL | visible |
| CGPoint | anchorPoint |
| CGPoint | anchorPointInPoints |
| CGSize | contentSize |
| BOOL | isRunning |
| CCNode * | parent |
| BOOL | ignoreAnchorPointForPosition |
| NSInteger | tag |
| void * | userData |
| id | userObject |
| CCGLProgram * | shaderProgram |
| NSUInteger | orderOfArrival |
| ccGLServerState | glServerState |
| CCActionManager * | actionManager |
| CCScheduler * | scheduler |
Additional Inherited Members | |
| Instance Methods inherited from CCSprite | |
| (id) | - initWithTexture: |
| (id) | - initWithTexture:rect: |
| (id) | - initWithTexture:rect:rotated: |
| (id) | - initWithSpriteFrame: |
| (id) | - initWithSpriteFrameName: |
| (id) | - initWithFile: |
| (id) | - initWithFile:rect: |
| (id) | - initWithCGImage:key: |
| (void) | - updateTransform |
| (void) | - setTextureRect: |
| (void) | - setTextureRect:rotated:untrimmedSize: |
| (void) | - setVertexRect: |
| (void) | - setDisplayFrame: |
| (BOOL) | - isFrameDisplayed: |
| (CCSpriteFrame *) | - displayFrame |
| (void) | - setDisplayFrameWithAnimationName:index: |
| (id) | - initWithBatchNode:rect: |
| (CCSpriteFrame *) | - DEPRECATED_ATTRIBUTE |
| Class Methods inherited from CCSprite | |
| (id) | + spriteWithTexture: |
| (id) | + spriteWithTexture:rect: |
| (id) | + spriteWithSpriteFrame: |
| (id) | + spriteWithSpriteFrameName: |
| (id) | + spriteWithFile: |
| (id) | + spriteWithFile:rect: |
| (id) | + spriteWithCGImage:key: |
| (id) | + spriteWithBatchNode:rect: |
A CCSprite subclass that is bound to a physics body. It works with:
Features and Limitations:
|
readwritenonatomicassign |
Keep the sprite's rotation separate from the body.