CC3NodeUpdatingVisitor is a CC3NodeVisitor that is passed to a node when it is visited during updating and transforming operations. More...
#import <CC3NodeVisitor.h>
Public Member Functions | |
(id) | - initWithWorld:andDeltaTime: |
Static Public Member Functions | |
(id) | + visitorWithWorld:andDeltaTime: |
Properties | |
ccTime | deltaTime |
CC3NodeUpdatingVisitor is a CC3NodeVisitor that is passed to a node when it is visited during updating and transforming operations.
This visitor encapsulates the time since the previous update.
- (id) initWithWorld: | (CC3World *) | theWorld | |
andDeltaTime: | (ccTime) | dt | |
Initializes this instance with the specified world and delta time.
+ (id) visitorWithWorld: | (CC3World *) | theWorld | |
andDeltaTime: | (ccTime) | dt | |
Allocates and initializes an autoreleased instance with the specified world and delta time.
- (ccTime) deltaTime [read, write, assign] |
This property gives the interval, in seconds, since the previous update.
This value can be used to create realistic real-time motion that is independent of specific frame or update rates. Depending on the setting of the maxUpdateInterval property of the CC3World instance, the value of this property may be clamped to an upper limit. See the description of the CC3World maxUpdateInterval property for more information about clamping the update interval.