cpCCNodeProtocol Protocol Reference
Conforms to | NSObject |
Declared in | cpCCNodeImpl.h |
Overview
Our protocol that our CocosNode objects follow, these include:
-cpSprite
-cpShapeNode
-cpAtlasSprite
Tasks
-
ignoreRotation
Set this if you don’t want this object to sync with the body’s rotation
property required method -
autoFreeShapeAndBody
Set this to true if you want the shape and/or body to be free’d when we’re released
property required method -
integrationDt
If this is anything other than zero, a position change will update the shapes velocity using integrationDt to calculate it
property required method -
shape
The shape, if any, that we’re connected to. Setting this will also set the body
property required method -
shapes
The shapes, each wrapped in an NSValue, that our body is connected to
property required method -
body
The body, if any, that we’re connected to. You may have a body with no shape set
property required method -
spaceManager
If autoFreeShapeAndBody is set, then this must be set too
property required method -
– applyImpulse:
-
– applyImpulse:offset:
-
– applyForce:
-
– applyForce:offset:
-
– resetForces
Properties
autoFreeShapeAndBody
Set this to true if you want the shape and/or body to be free’d when we’re released
@property (nonatomic, readwrite, assign) BOOL autoFreeShapeAndBody
Declared In
cpCCNodeImpl.h
body
The body, if any, that we’re connected to. You may have a body with no shape set
@property (nonatomic, readwrite, assign) cpBody *body
Declared In
cpCCNodeImpl.h
ignoreRotation
Set this if you don’t want this object to sync with the body’s rotation
@property (nonatomic, readwrite, assign) BOOL ignoreRotation
Declared In
cpCCNodeImpl.h
integrationDt
If this is anything other than zero, a position change will update the shapes velocity using integrationDt to calculate it
@property (nonatomic, readwrite, assign) cpFloat integrationDt
Declared In
cpCCNodeImpl.h
shape
The shape, if any, that we’re connected to. Setting this will also set the body
@property (nonatomic, readwrite, assign) cpShape *shape
Declared In
cpCCNodeImpl.h